Class: DimensionShell::CloudControl
- Inherits:
-
Object
- Object
- DimensionShell::CloudControl
- Defined in:
- lib/dimension_shell/cloud_control.rb
Instance Method Summary collapse
- #get_server(servername) ⇒ Object
- #get_server_list ⇒ Object
-
#initialize(args) ⇒ CloudControl
constructor
A new instance of CloudControl.
Constructor Details
#initialize(args) ⇒ CloudControl
Returns a new instance of CloudControl.
7 8 9 10 11 12 |
# File 'lib/dimension_shell/cloud_control.rb', line 7 def initialize(args) @region = args[:region] @organization = args[:organization] @username = args[:username] @password = args[:password] end |
Instance Method Details
#get_server(servername) ⇒ Object
14 15 16 |
# File 'lib/dimension_shell/cloud_control.rb', line 14 def get_server(servername) _invoke_get path: 'server/server', query: { name: servername } end |
#get_server_list ⇒ Object
18 19 20 |
# File 'lib/dimension_shell/cloud_control.rb', line 18 def get_server_list _invoke_get path: 'server/server' end |