Class: Cloudspeq::Providers::DigitalOcean::Machine
Instance Method Summary
collapse
#attributes, #exec, #exec!, #initialize, #restart, #root_exec, #shutdown, #startup, #sync
Instance Method Details
#destroy ⇒ Object
117
118
119
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 117
def destroy
::Digitalocean::Droplet.destroy(attributes.id)
end
|
#ip_address ⇒ Object
101
102
103
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 101
def ip_address
attributes.ip_address
end
|
#name ⇒ Object
97
98
99
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 97
def name
attributes.name
end
|
#power_cycle ⇒ Object
109
110
111
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 109
def power_cycle
::Digitalocean::Droplet.power_cycle(attributes.id)
end
|
#power_off ⇒ Object
105
106
107
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 105
def power_off
::Digitalocean::Droplet.power_off(attributes.id)
end
|
#power_on ⇒ Object
113
114
115
|
# File 'lib/cloudspeq/providers/digital_ocean.rb', line 113
def power_on
::Digitalocean::Droplet.power_on(attributes.id)
end
|