Class: Bosh::Providers::Cli::ProviderCli

Inherits:
Object
  • Object
show all
Includes:
Inception::CliHelpers::Interactions
Defined in:
lib/bosh/providers/cli/provider_cli.rb

Direct Known Subclasses

AwsProviderCli, OpenStackProviderCli

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Inception::CliHelpers::Interactions

#bold, #clear, #cyan, #green, #hl, #red, #yellow

Constructor Details

#initialize(attributes) ⇒ ProviderCli

Returns a new instance of ProviderCli.



11
12
13
14
15
# File 'lib/bosh/providers/cli/provider_cli.rb', line 11

def initialize(attributes)
  @provider_client = provider_client
  @attributes = attributes.is_a?(Hash) ? Settingslogic.new(attributes) : attributes
  raise "@attributes must be Settingslogic (or Hash)" unless @attributes.is_a?(Settingslogic)
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



9
10
11
# File 'lib/bosh/providers/cli/provider_cli.rb', line 9

def attributes
  @attributes
end

#provider_clientObject (readonly)

Returns the value of attribute provider_client.



8
9
10
# File 'lib/bosh/providers/cli/provider_cli.rb', line 8

def provider_client
  @provider_client
end