Class: VagrantPlugins::Filoo::Action::GetImages

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_filoo/action/get_images.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ GetImages

Returns a new instance of GetImages.



8
9
10
11
12
# File 'lib/vagrant_filoo/action/get_images.rb', line 8

def initialize(app, env)
  @app    = app
  @baseUrl =env[:machine].provider_config.filoo_api_entry_point()
  @apiKey = env[:machine].provider_config.filoo_api_key()
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
# File 'lib/vagrant_filoo/action/get_images.rb', line 13

def call(env)
  env[:images]= VagrantPlugins::Filoo::CloudCompute::getAutoInstallImages(@baseUrl, @apiKey)
  env[:result] = env[:images]
  @app.call(env)
end