Class: Bosh::Gen::Models::BoshConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/gen/models/bosh_config.rb

Overview

Read-only interface to local ~/.bosh_config file

Instance Method Summary collapse

Constructor Details

#initialize(config_file = "~/.bosh_config") ⇒ BoshConfig

Returns a new instance of BoshConfig.



6
7
8
9
# File 'lib/bosh/gen/models/bosh_config.rb', line 6

def initialize(config_file="~/.bosh_config")
  @config_file = File.expand_path(config_file)
  @config = YAML.load_file(@config_file)
end

Instance Method Details

#target_uuidObject



11
12
13
# File 'lib/bosh/gen/models/bosh_config.rb', line 11

def target_uuid
  @config["target_uuid"]
end