deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/8] git commit: * server/Rakefile (mock:fixtures:setup): do not chain calls to gsub!
Date Thu, 07 Mar 2013 11:22:16 GMT
* server/Rakefile (mock:fixtures:setup): do not chain calls to gsub!

String#gsub! returns nil when nothing was substituted
TrackedAt: http://tracker.deltacloud.org/patch/1649efe36617e23ad44f51786ee252ba29610d9a


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/666aa656
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/666aa656
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/666aa656

Branch: refs/heads/master
Commit: 666aa656e71d82181abfa61f3b9c923c64961edb
Parents: 5339cd6
Author: David Lutterkort <lutter@redhat.com>
Authored: Wed Mar 6 17:46:40 2013 -0800
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Mar 7 12:17:17 2013 +0100

----------------------------------------------------------------------
 server/Rakefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/666aa656/server/Rakefile
----------------------------------------------------------------------
diff --git a/server/Rakefile b/server/Rakefile
index da068b8..ec7dd4e 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -66,7 +66,8 @@ namespace :mock do
     task 'setup' => :initialize do
       srcdir = File::join(File::dirname(__FILE__), "lib", "deltacloud", "drivers", "mock",
"data")
       data = Dir::glob(File::join(srcdir, "*"))
-      srcdir.gsub!(/^#{ENV["PWD"]}/, ".").gsub!(/^#{ENV["HOME"]}/, "~")
+      srcdir.gsub!(/^#{ENV["PWD"]}/, ".")
+      srcdir.gsub!(/^#{ENV["HOME"]}/, "~")
       puts "Copy mock data to #{MOCK_STORAGE_DIR}"
       puts "  (from #{srcdir})"
       FileUtils::cp_r(data, MOCK_STORAGE_DIR, :verbose => false)


Mime
View raw message