lib/omnibus/install_path_cache.rb in omnibus-3.1.0 vs lib/omnibus/install_path_cache.rb in omnibus-3.1.1

- old
+ new

@@ -37,11 +37,11 @@ end # Creates the full path if it does not exist already def create_cache_path FileUtils.mkdir_p(File.dirname(cache_path)) - quiet_shellout!("git --git-dir=#{cache_path} init -q") unless cache_path_exists? + shellout!("git --git-dir=#{cache_path} init -q") unless cache_path_exists? true end # Computes the tag for this cache entry def tag @@ -72,31 +72,31 @@ end # Create an incremental install path cache for the software step def incremental create_cache_path - quiet_shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} add -A -f)) + shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} add -A -f)) begin - quiet_shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} commit -q -m "Backup of #{tag}")) + shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} commit -q -m "Backup of #{tag}")) rescue Mixlib::ShellOut::ShellCommandFailed => e if e.message !~ /nothing to commit/ raise end end - quiet_shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} tag -f "#{tag}")) + shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} tag -f "#{tag}")) end def restore create_cache_path - cmd = quiet_shellout(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} tag -l "#{tag}")) + cmd = shellout(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} tag -l "#{tag}")) restore_me = false cmd.stdout.each_line do |line| restore_me = true if tag == line.chomp end if restore_me - quiet_shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} checkout -f "#{tag}")) + shellout!(%Q(git --git-dir=#{cache_path} --work-tree=#{@install_path} checkout -f "#{tag}")) true else false end end