lib/rconf/configurators/git_repo_configurator.rb in rconf-0.9.18 vs lib/rconf/configurators/git_repo_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 @@ -33,21 +33,21 @@ def check_linux File.exist?(path) && File.exist?(File.join(path, '.git')) end alias :check_darwin :check_linux alias :check_windows :check_linux - + # Clone git repo and run build commands if given # # === Return # true:: Always return true def run_linux if File.exist?(path) - FileUtils.mv(path, "#{path}_old") + FileUtils.mv(path, "#{path}_old") post_note "Had to move #{path} to #{path}_old" end report_check("Cloning #{repo} into #{path}") - Command.execute('git', 'clone', repo, path, + Command.execute('git', 'clone', repo, path, :abort_on_failure => "Failed to clone #{repo} into #{path}") report_success if tag report_check("Checking out #{tag}") Dir.chdir(path) do