Class: EY::Serverside::Spawner::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/spawner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



174
175
176
# File 'lib/engineyard-serverside/spawner.rb', line 174

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



174
175
176
# File 'lib/engineyard-serverside/spawner.rb', line 174

def output
  @output
end

#serverObject (readonly)

Returns the value of attribute server.



174
175
176
# File 'lib/engineyard-serverside/spawner.rb', line 174

def server
  @server
end

#successObject (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

#inspectObject



183
184
185
186
187
188
# File 'lib/engineyard-serverside/spawner.rb', line 183

def inspect
  <<-EOM
$ #{success? ? "(success)" : "(failed)"} #{command}
#{output}
  EOM
end