Sha256: 9e8220b6884db9ced296e6de6262813582694ef6762b1af958014202ec6cac43
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
module Capistrano module S3 module Defaults DEFAULTS = { :deployment_path => proc { Dir.pwd.gsub("\n", "") + "/public" }, :bucket_write_options => { :acl => :public_read }, :s3_endpoint => "s3.amazonaws.com", :redirect_options => {}, } def self.populate(context, set_method) DEFAULTS.each do |key, value| value = value.is_a?(Proc) ? value.call : value context.send(set_method, key, value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-s3-0.3.0 | lib/capistrano/s3/defaults.rb |