Class: Flotte::Configuration::Hosts

Inherits:
Object
  • Object
show all
Defined in:
lib/flotte/configuration/hosts.rb

Constant Summary collapse

ALLOWED_DEFAULT_KEYS =
["user"]

Instance Method Summary collapse

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

#allObject



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