Class: VagrantPlugins::OneAndOne::Action::Connect1And1
- Inherits:
-
Object
- Object
- VagrantPlugins::OneAndOne::Action::Connect1And1
- Defined in:
- lib/vagrant-oneandone/action/connect_1and1.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ Connect1And1
constructor
A new instance of Connect1And1.
Constructor Details
#initialize(app, _env) ⇒ Connect1And1
Returns a new instance of Connect1And1.
8 9 10 11 |
# File 'lib/vagrant-oneandone/action/connect_1and1.rb', line 8 def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_1and1::action::connect_1and1') end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/vagrant-oneandone/action/connect_1and1.rb', line 13 def call(env) config = env[:machine].provider_config api_key = config.api_key params = { oneandone_api_key: api_key } env[:oneandone_compute] = Fog::Compute::OneAndOne.new params @app.call(env) end |