Exception: CommandLine::ExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- CommandLine::ExecutionError
- Defined in:
- lib/dtr/command_line.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(cmd, full_cmd, dir, exitstatus, stderr) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd, full_cmd, dir, exitstatus, stderr) ⇒ ExecutionError
Returns a new instance of ExecutionError.
36 37 38 |
# File 'lib/dtr/command_line.rb', line 36 def initialize(cmd, full_cmd, dir, exitstatus, stderr) @cmd, @full_cmd, @dir, @exitstatus, @stderr = cmd, full_cmd, dir, exitstatus, stderr end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
35 36 37 |
# File 'lib/dtr/command_line.rb', line 35 def cmd @cmd end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
35 36 37 |
# File 'lib/dtr/command_line.rb', line 35 def dir @dir end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
35 36 37 |
# File 'lib/dtr/command_line.rb', line 35 def exitstatus @exitstatus end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
35 36 37 |
# File 'lib/dtr/command_line.rb', line 35 def stderr @stderr end |
Instance Method Details
#to_s ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/dtr/command_line.rb', line 39 def to_s "\ndir : #{@dir}\n" + "command : #{@cmd}\n" + "executed command : #{@full_cmd}\n" + "exitstatus: #{@exitstatus}\n" + "STDERR TAIL START\n#{@stderr}\nSTDERR TAIL END\n" end |