Method: Cluster.set_credentials_file
- Defined in:
- lib/cluster.rb
.set_credentials_file ⇒ Object
235 236 237 238 239 240 241 242 243 |
# File 'lib/cluster.rb', line 235 def set_credentials_file unless Cluster::Configuration.credentials? if ENV['CREDENTIALS'] and File.exist?(ENV['CREDENTIALS']) Cluster::Configuration[:credentials_file] = ENV['CREDENTIALS'] elsif ENV['HOME'] and File.exist?(File.join(ENV['HOME'], '.cluster', 'credentials.yml')) Cluster::Configuration[:credentials_file] = File.join(ENV['HOME'], '.cluster', 'credentials.yml') end end end |