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

#destroy, #get, #initialize

Methods inherited from Base

#[], #data, #headers, #initialize, #method_missing, #object_symbol, #post, #put, #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)


151
152
153
154
# File 'lib/cloudpassage/servers.rb', line 151

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