Class: Flotte::Configuration::Hosts
- Inherits:
-
Object
- Object
- Flotte::Configuration::Hosts
- Defined in:
- lib/flotte/configuration/hosts.rb
Constant Summary collapse
- ALLOWED_DEFAULT_KEYS =
["user"]
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(config_file) ⇒ Hosts
constructor
A new instance of Hosts.
Constructor Details
#initialize(config_file) ⇒ Hosts
Returns a new instance of Hosts.
9 10 11 |
# File 'lib/flotte/configuration/hosts.rb', line 9 def initialize(config_file) @config_file = config_file end |
Instance Method Details
#all ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/flotte/configuration/hosts.rb', line 13 def all load_config @raw_host_config["hosts"].map do |entry| parse(entry) end end |