Class: Bosh::Providers::Cli::ProviderCli
- Inherits:
-
Object
- Object
- Bosh::Providers::Cli::ProviderCli
- Includes:
- Inception::CliHelpers::Interactions
- Defined in:
- lib/bosh/providers/cli/provider_cli.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#provider_client ⇒ Object
readonly
Returns the value of attribute provider_client.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ProviderCli
constructor
A new instance of ProviderCli.
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
#attributes ⇒ Object (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_client ⇒ Object (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 |