Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#credentials ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'bin/fog', line 6 def credentials @credentials ||= begin if ARGV[0] && File.exists?(File.(ARGV[0])) YAML.load(File.open(File.(ARGV[0])).read) elsif File.exists?(File.('~/.fog')) YAML.load(File.open(File.('~/.fog')).read) end end end |