Exception: RSCM::CommandLine::ExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- RSCM::CommandLine::ExecutionError
- Defined in:
- lib/rscm/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, dir, exitstatus, stderr) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd, dir, exitstatus, stderr) ⇒ ExecutionError
Returns a new instance of ExecutionError.
8 |
# File 'lib/rscm/command_line.rb', line 8 def initialize(cmd, dir, exitstatus, stderr); @cmd, @dir, @exitstatus, @stderr = cmd, dir, exitstatus, stderr; end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
7 8 9 |
# File 'lib/rscm/command_line.rb', line 7 def cmd @cmd end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
7 8 9 |
# File 'lib/rscm/command_line.rb', line 7 def dir @dir end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
7 8 9 |
# File 'lib/rscm/command_line.rb', line 7 def exitstatus @exitstatus end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
7 8 9 |
# File 'lib/rscm/command_line.rb', line 7 def stderr @stderr end |
Instance Method Details
#to_s ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rscm/command_line.rb', line 9 def to_s "\ndir : #{@dir}\n" + "command : #{@cmd}\n" + "exitstatus: #{@exitstatus}\n" + "STDERR TAIL START\n#{@stderr}\nSTDERR TAIL END\n" end |