Class: RightScaleCLI::Config
- Inherits:
-
Object
- Object
- RightScaleCLI::Config
- Defined in:
- lib/rightscale_cli/config.rb
Instance Attribute Summary collapse
-
#local ⇒ Object
Returns the value of attribute local.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(*args) ⇒ Config
Returns a new instance of Config.
23 24 25 26 |
# File 'lib/rightscale_cli/config.rb', line 23 def initialize(*args) @path = File.join(ENV['HOME'], '.rightscale', 'right_api_client.yml') @local = YAML.load_file(@path) end |
Instance Attribute Details
#local ⇒ Object
Returns the value of attribute local.
21 22 23 |
# File 'lib/rightscale_cli/config.rb', line 21 def local @local end |
#path ⇒ Object
Returns the value of attribute path.
21 22 23 |
# File 'lib/rightscale_cli/config.rb', line 21 def path @path end |