Class: Fog::Compute::StormOnDemand::Server
- Inherits:
-
Fog::Compute::Server
- Object
- Fog::Compute::Server
- Fog::Compute::StormOnDemand::Server
- Defined in:
- lib/fog/compute/storm_on_demand/models/server.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
writeonly
Sets the attribute password.
Instance Method Summary collapse
- #clone(options) ⇒ Object
- #destroy ⇒ Object
- #history(options = {}) ⇒ Object
- #ready? ⇒ Boolean
- #reboot(options = {}) ⇒ Object
- #resize(options) ⇒ Object
- #shutdown(options = {}) ⇒ Object
- #start ⇒ Object
- #status ⇒ Object
- #update(options) ⇒ Object
Instance Attribute Details
#password=(value) ⇒ Object (writeonly)
Sets the attribute password
28 29 30 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 28 def password=(value) @password = value end |
Instance Method Details
#clone(options) ⇒ Object
46 47 48 49 50 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 46 def clone() requires :identity service.clone_server({:uniq_id => identity}.merge!()) true end |
#destroy ⇒ Object
30 31 32 33 34 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 30 def destroy requires :identity service.delete_server(:uniq_id => identity) true end |
#history(options = {}) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 58 def history( = {}) requires :identity params = {:uniq_id => identity}.merge!() res = service.server_history(params).body res["items"] end |
#ready? ⇒ Boolean
36 37 38 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 36 def ready? active == 1 end |
#reboot(options = {}) ⇒ Object
40 41 42 43 44 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 40 def reboot( = {}) requires :identity service.reboot_server({:uniq_id => identity}.merge!()) true end |
#resize(options) ⇒ Object
52 53 54 55 56 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 52 def resize() requires :identity service.resize_server({:uniq_id => identity}.merge!()) true end |
#shutdown(options = {}) ⇒ Object
65 66 67 68 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 65 def shutdown( = {}) requires :identity service.shutdown_server({:uniq_id => identity}.merge!()).body end |
#start ⇒ Object
70 71 72 73 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 70 def start reqwuires :identity service.start_server({:uniq_id => identity}).body end |
#status ⇒ Object
75 76 77 78 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 75 def status requires :identity service.server_status({:uniq_id => identity}).body end |
#update(options) ⇒ Object
80 81 82 83 |
# File 'lib/fog/compute/storm_on_demand/models/server.rb', line 80 def update() requires :identity service.update_server({:uniq_id => identity}.merge!()).body end |