Module: Inception::CliHelpers::Provider

Included in:
Inception::Cli
Defined in:
lib/inception/cli_helpers/provider.rb

Instance Method Summary collapse

Instance Method Details

#fog_computeObject

If the provider_client uses fog, then this will return its fog_compute client object


10
11
12
# File 'lib/inception/cli_helpers/provider.rb', line 10

def fog_compute
  provider_client.respond_to?(:fog_compute) ? provider_client.fog_compute : nil
end

#provider_clientObject


3
4
5
6
7
# File 'lib/inception/cli_helpers/provider.rb', line 3

def provider_client
  @provider_client ||= begin
    Inception::Providers.provider_client(settings.provider)
  end
end