class ForemanMaintain::Error::ExecutionError
Attributes
command[R]
exit_status[R]
input[R]
output[R]
Public Class Methods
new(command, exit_status, input, output)
click to toggle source
Calls superclass method
# File lib/foreman_maintain/error.rb, line 28 def initialize(command, exit_status, input, output) @command = command @exit_status = exit_status @input = input @output = output super(generate_message) end
Public Instance Methods
generate_message()
click to toggle source
# File lib/foreman_maintain/error.rb, line 36 def generate_message ret = "Failed executing #{command}, exit status #{exit_status}" ret << "with input '#{input}'" if input ret << ":\n #{output}" if output && !output.empty? ret end