Sha256: d6aa3440835481bb0ecd24e4d8d109aa5b818b3ef40ce2ce9964865f839480c0
Contents?: true
Size: 345 Bytes
Versions: 11
Compression:
Stored size: 345 Bytes
Contents
module Ops HOSTS_DIR = "hosts" CONTAINERS_DIR = "containers" PROVIDERS_DIR = "providers" def self.get_user_for(host_name) host_file = "#{HOSTS_DIR}/#{host_name}.yml" begin params = YAML.load_file host_file params["user"] rescue raise "Please, create '#{host_file}' configuring your host" end end end
Version data entries
11 entries across 11 versions & 1 rubygems