Class: Bosh::Gen::Models::BoshConfig
- Inherits:
-
Object
- Object
- Bosh::Gen::Models::BoshConfig
- Defined in:
- lib/bosh/gen/models/bosh_config.rb
Overview
Read-only interface to local ~/.bosh_config file
Instance Method Summary collapse
-
#initialize(config_file = "~/.bosh_config") ⇒ BoshConfig
constructor
A new instance of BoshConfig.
- #target_uuid ⇒ Object
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.(config_file) @config = YAML.load_file(@config_file) end |
Instance Method Details
#target_uuid ⇒ Object
11 12 13 |
# File 'lib/bosh/gen/models/bosh_config.rb', line 11 def target_uuid @config["target_uuid"] end |