lib/amiba/site.rb in amiba-0.0.4 vs lib/amiba/site.rb in amiba-0.0.5
- old
+ new
@@ -38,9 +38,11 @@
namespace :"site:upload:s3"
class_option :credentials, :default => :default
def init_s3
+ cf = File.expand_path(File.join(Dir.pwd, ".fog"))
+ Fog.credentials_path = cf if File.exists? cf
Fog.credential = options[:credentials].to_sym
@s3 ||= Fog::Storage.new(:provider=>'AWS')
end
def create