Method: Explorer::Hostmap#load

Defined in:
lib/explorer/hostmap.rb

#load(file) ⇒ Object



37
38
39
40
41
42
# File 'lib/explorer/hostmap.rb', line 37

def load file
  return unless File.exist? file

  yaml = YAML.load_file file
  @mappings = yaml
end