lib/rconf/configurators/build_configurator.rb in rconf-0.9.18 vs lib/rconf/configurators/build_configurator.rb in rconf-0.9.19

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide. +# Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized @@ -51,10 +51,10 @@ Command.execute('mkdir', '-p', path, :abort_on_failure => "Failed to create #{path}") if tarball_url Dir.chdir(path) do filename = File.basename(tarball_url) unless File.exists?(File.join(Dir.pwd, filename)) - Command.execute('curl', '-O', '-f', tarball_url, :abort_on_failure => "Failed to curl #{tarball_url}") + Command.execute('curl', '-O', '-f', tarball_url, :abort_on_failure => "Failed to curl #{tarball_url}") end abf = { :abort_on_failure => "Failed to uncompress #{filename}" } case filename when /\.tar\.gz$|\.tgz$/ then Command.execute('tar', '-xzvf', filename, abf)