module Ops
Constants
- CONTAINERS_DIR
- DEFAULT_USER
- HOSTS_DIR
- NODES_DIR
- PROVIDERS_DIR
Public Class Methods
get_user_for(host_name)
click to toggle source
# File lib/open-dock/base.rb, line 8 def self.get_user_for(host_name) host_file = "#{HOSTS_DIR}/#{host_name}.yml" if File.exist? host_file params = YAML.load_file host_file if params and params.has_key? "user" return params["user"] end end return DEFAULT_USER end