Class: AvstCloud::CloudConnection
- Inherits:
-
Object
- Object
- AvstCloud::CloudConnection
- Includes:
- Logging
- Defined in:
- lib/avst-cloud/cloud_connection.rb
Direct Known Subclasses
AwsConnection, AzureConnection, AzureRmConnection, GcpConnection, RackspaceConnection
Constant Summary collapse
- UNIMPLEMENTED =
Abstract classes to be implemented per provider
"Unimplemented..."
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#provider_pass ⇒ Object
Returns the value of attribute provider_pass.
-
#provider_user ⇒ Object
Returns the value of attribute provider_user.
Instance Method Summary collapse
-
#initialize(provider, provider_user, provider_pass) ⇒ CloudConnection
constructor
A new instance of CloudConnection.
- #list_known_servers ⇒ Object
- #server(server_name, root_user, root_password, os = nil) ⇒ Object
Methods included from Logging
included, logger, #logger, logger=, mask_message, show_passwords=
Constructor Details
#initialize(provider, provider_user, provider_pass) ⇒ CloudConnection
Returns a new instance of CloudConnection.
22 23 24 25 26 |
# File 'lib/avst-cloud/cloud_connection.rb', line 22 def initialize(provider, provider_user, provider_pass) @provider = provider @provider_access_user = provider_user @provider_access_pass = provider_pass end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
20 21 22 |
# File 'lib/avst-cloud/cloud_connection.rb', line 20 def connection @connection end |
#provider ⇒ Object
Returns the value of attribute provider.
20 21 22 |
# File 'lib/avst-cloud/cloud_connection.rb', line 20 def provider @provider end |
#provider_pass ⇒ Object
Returns the value of attribute provider_pass.
20 21 22 |
# File 'lib/avst-cloud/cloud_connection.rb', line 20 def provider_pass @provider_pass end |
#provider_user ⇒ Object
Returns the value of attribute provider_user.
20 21 22 |
# File 'lib/avst-cloud/cloud_connection.rb', line 20 def provider_user @provider_user end |
Instance Method Details
#list_known_servers ⇒ Object
35 36 37 |
# File 'lib/avst-cloud/cloud_connection.rb', line 35 def list_known_servers raise UNIMPLEMENTED end |
#server(server_name, root_user, root_password, os = nil) ⇒ Object
31 32 33 |
# File 'lib/avst-cloud/cloud_connection.rb', line 31 def server(server_name, root_user, root_password, os=nil) raise UNIMPLEMENTED end |