diff options
| author | Markus Reiter | 2017-07-01 05:32:19 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-01 05:32:19 +0200 |
| commit | fd5e673d2d367eff03f1411d909ca0bbb2003a2c (patch) | |
| tree | f908de0884ea7048aa79caedc726ef8a8cc12818 /Library/Homebrew/cask/lib/hbc/system_command.rb | |
| parent | 0a5052141d59ece4adb3c9dbd62096c7a2ed7282 (diff) | |
| parent | 6a1fa87191bfef31ff1b2d47d3ebf281398a210f (diff) | |
| download | brew-fd5e673d2d367eff03f1411d909ca0bbb2003a2c.tar.bz2 | |
Merge pull request #2825 from reitermarkus/refactoring
Refactoring using `Forwardable` and `DelegateClass`.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/system_command.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/system_command.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/system_command.rb b/Library/Homebrew/cask/lib/hbc/system_command.rb index 6414a9e80..901617b71 100644 --- a/Library/Homebrew/cask/lib/hbc/system_command.rb +++ b/Library/Homebrew/cask/lib/hbc/system_command.rb @@ -20,7 +20,7 @@ module Hbc def run! @processed_output = { stdout: "", stderr: "" } - odebug "Executing: #{expanded_command.utf8_inspect}" + odebug "Executing: #{expanded_command}" each_output_line do |type, line| case type @@ -62,7 +62,7 @@ module Hbc def assert_success return if processed_status && processed_status.success? - raise CaskCommandFailedError.new(command.utf8_inspect, processed_output[:stdout], processed_output[:stderr], processed_status) + raise CaskCommandFailedError.new(command, processed_output[:stdout], processed_output[:stderr], processed_status) end def expanded_command @@ -162,7 +162,7 @@ module Hbc raise CaskError, <<-EOS Empty result parsing plist output from command. command was: - #{command.utf8_inspect} + #{command} output we attempted to parse: #{output} EOS |
