Method: VMC::Cli::Config.clients

Defined in:
lib/cli/config.rb

.clientsObject



130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/cli/config.rb', line 130

def clients
  return @clients if @clients

  stock = YAML.load_file(STOCK_CLIENTS)
  clients = File.expand_path CLIENTS_FILE
  if File.exists? clients
    user = YAML.load_file(clients)
    @clients = deep_merge(stock, user)
  else
    @clients = stock
  end
end