Class: EY::Serverside::Spawner::Result
- Inherits:
-
Object
- Object
- EY::Serverside::Spawner::Result
- Defined in:
- lib/engineyard-serverside/spawner.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#success ⇒ Object
(also: #success?)
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(command, success, output, server = nil) ⇒ Result
constructor
A new instance of Result.
- #inspect ⇒ Object
Constructor Details
#initialize(command, success, output, server = nil) ⇒ Result
Returns a new instance of Result.
175 176 177 178 179 180 |
# File 'lib/engineyard-serverside/spawner.rb', line 175 def initialize(command, success, output, server = nil) @command = command @success = success @output = output @server = server end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
174 175 176 |
# File 'lib/engineyard-serverside/spawner.rb', line 174 def command @command end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
174 175 176 |
# File 'lib/engineyard-serverside/spawner.rb', line 174 def output @output end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
174 175 176 |
# File 'lib/engineyard-serverside/spawner.rb', line 174 def server @server end |
#success ⇒ Object (readonly) Also known as: success?
Returns the value of attribute success.
174 175 176 |
# File 'lib/engineyard-serverside/spawner.rb', line 174 def success @success end |
Instance Method Details
#inspect ⇒ Object
183 184 185 186 187 188 |
# File 'lib/engineyard-serverside/spawner.rb', line 183 def inspect <<-EOM $ #{success? ? "(success)" : "(failed)"} #{command} #{output} EOM end |