Class: Zombees::Connection
- Inherits:
-
Object
- Object
- Zombees::Connection
- Extended by:
- Forwardable
- Defined in:
- lib/zombees/connection.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(config) ⇒ Connection
Returns a new instance of Connection.
11 12 13 |
# File 'lib/zombees/connection.rb', line 11 def initialize(config) @connection = Fog::Compute.new(config) end |
Class Method Details
.import_key_pair(config) ⇒ Object
7 8 9 10 |
# File 'lib/zombees/connection.rb', line 7 def self.import_key_pair(config) connection = Fog::Compute.new(config) connection.import_key_pair(:fog_default, IO.read('tourfleet.pub')) if connection.key_pairs.get(:fog_default).nil? end |