Class: Cloudpassage::Command

Inherits:
Single show all
Defined in:
lib/cloudpassage/servers.rb

Instance Attribute Summary

Attributes inherited from Single

#id

Instance Method Summary collapse

Methods inherited from Single

#get, #initialize

Methods inherited from Base

#[], #data, #headers, #initialize, #method_missing, #object_symbol, #post, #reload, #wait_for

Constructor Details

This class inherits a constructor from Cloudpassage::Single

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Cloudpassage::Base

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)


101
102
103
104
# File 'lib/cloudpassage/servers.rb', line 101

def done?
  self.reload
  %w'completed failed'.include? self.status
end