Module: Inception::CliHelpers::Provider
- Included in:
- Inception::Cli
- Defined in:
- lib/inception/cli_helpers/provider.rb
Instance Method Summary collapse
-
#fog_compute ⇒ Object
If the
provider_client
uses fog, then this will return itsfog_compute
client object. - #provider_client ⇒ Object
Instance Method Details
#fog_compute ⇒ Object
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_client ⇒ Object
3 4 5 6 7 |
# File 'lib/inception/cli_helpers/provider.rb', line 3 def provider_client @provider_client ||= begin Bosh::Providers.provider_client(settings.provider) end end |