Method: CloudstackClient::Configuration.locate_config_file

Defined in:
lib/cloudstack_client/configuration.rb

.locate_config_fileObject



37
38
39
40
41
42
43
# File 'lib/cloudstack_client/configuration.rb', line 37

def self.locate_config_file
  %w(.cloudstack .cloudstack-cli).each do |file|
    file = File.join(Dir.home, "#{file}.yml")
    return file if File.exist?(file)
  end
  nil
end