From 56a658528297edd0362b949b1d7230c2f485fb92 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Tue, 25 Jun 2013 17:59:54 -0700 Subject: [PATCH] Added the -f, --fogrc option for specifying an alternate fogrc file. --- bin/fog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/fog b/bin/fog index 7f82de0e6..b01da7606 100755 --- a/bin/fog +++ b/bin/fog @@ -8,6 +8,10 @@ require 'yaml' options = OptionParser.new do |opts| opts.banner = 'usage: fog [options] GROUP' + opts.on('-f', '--fogrc FILE', 'Path to the fogrc file') do |file| + Fog.credentials_path = file + end + opts.on_tail('-V', '--version', 'Prints the version') do puts Fog::VERSION exit