Exception: OopRailsServer::RailsServer::CommandFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- OopRailsServer::RailsServer::CommandFailedError
- Defined in:
- lib/oop_rails_server/rails_server.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(directory, command, result, output) ⇒ CommandFailedError
constructor
A new instance of CommandFailedError.
Constructor Details
#initialize(directory, command, result, output) ⇒ CommandFailedError
Returns a new instance of CommandFailedError.
457 458 459 460 461 462 463 464 465 466 467 468 |
# File 'lib/oop_rails_server/rails_server.rb', line 457 def initialize(directory, command, result, output) @directory = directory @command = command @result = result @output = output super(%{Command failed: in directory '#{directory}', we tried to run: % #{command} but got result: #{result.inspect} and output: #{output}}) end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
455 456 457 |
# File 'lib/oop_rails_server/rails_server.rb', line 455 def command @command end |
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
455 456 457 |
# File 'lib/oop_rails_server/rails_server.rb', line 455 def directory @directory end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
455 456 457 |
# File 'lib/oop_rails_server/rails_server.rb', line 455 def output @output end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
455 456 457 |
# File 'lib/oop_rails_server/rails_server.rb', line 455 def result @result end |