class Bosh::Exec::Error
Raised when there was an error executing the command
Attributes
output[R]
Public Class Methods
new(status, command, output=nil)
click to toggle source
# File lib/common/exec/error.rb, line 8 def initialize(status, command, output=nil) @status = status @command = command @output = output end
Public Instance Methods
message()
click to toggle source
# File lib/common/exec/error.rb, line 14 def message if @status "command '#{@command}' failed with exit code #{@status}" else "command not found: #{@command}" end end
to_s()
click to toggle source
# File lib/common/exec/error.rb, line 22 def to_s message end