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

Version Path
open-dock-0.1.6 lib/open-dock/base.rb
open-dock-0.1.5 lib/open-dock/base.rb
open-dock-0.1.3 lib/open-dock/base.rb
open-dock-0.1.2 lib/open-dock/base.rb
open-dock-0.1.1 lib/open-dock/base.rb
open-dock-0.1.0 lib/open-dock/base.rb
open-dock-0.0.15 lib/open-dock/base.rb
open-dock-0.0.14 lib/open-dock/base.rb
open-dock-0.0.13 lib/open-dock/base.rb
open-dock-0.0.12 lib/open-dock/base.rb
open-dock-0.0.11 lib/open-dock/base.rb