Class: RightScaleCLI::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rightscale_cli/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#localObject

Returns the value of attribute local.



21
22
23
# File 'lib/rightscale_cli/config.rb', line 21

def local
  @local
end

#pathObject

Returns the value of attribute path.



21
22
23
# File 'lib/rightscale_cli/config.rb', line 21

def path
  @path
end