Class: Fog::Compute::RackspaceV2::Server
- Inherits:
-
Object
- Object
- Fog::Compute::RackspaceV2::Server
- Defined in:
- lib/cloudflock/patch/fog.rb
Instance Method Summary collapse
-
#rescue ⇒ Boolean
Place existing server into rescue mode, allowing for offline editing of configuration.
-
#unrescue ⇒ Boolean
Remove existing server from rescue mode.
Instance Method Details
#rescue ⇒ Boolean
Note:
Rescue mode is only guaranteed to be active for 90 minutes.
Place existing server into rescue mode, allowing for offline editing of configuration. The original server’s disk is attached to a new instance of the same base image for a period of time to facilitate working within rescue mode. The original server will be autom atically restored after 90 minutes.
-
Status Transition:
-
ACTIVE -> PREP_RESCUE -> RESCUE
-
18 19 20 21 22 23 24 |
# File 'lib/cloudflock/patch/fog.rb', line 18 def rescue requires :identity data = service.rescue_server(identity) merge_attributes(data.body) self.state = RESCUE true end |
#unrescue ⇒ Boolean
Note:
Rescue mode is only guaranteed to be active for 90 minutes.
Remove existing server from rescue mode.
-
Status Transition:
-
RESCUE -> PREP_UNRESCUE -> ACTIVE
-
38 39 40 41 42 43 |
# File 'lib/cloudflock/patch/fog.rb', line 38 def unrescue requires :identity service.unrescue_server(identity) self.state = ACTIVE true end |