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.
440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/oop_rails_server/rails_server.rb', line 440 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.
438 439 440 |
# File 'lib/oop_rails_server/rails_server.rb', line 438 def command @command end |
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
438 439 440 |
# File 'lib/oop_rails_server/rails_server.rb', line 438 def directory @directory end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
438 439 440 |
# File 'lib/oop_rails_server/rails_server.rb', line 438 def output @output end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
438 439 440 |
# File 'lib/oop_rails_server/rails_server.rb', line 438 def result @result end |