lib/datapimp/sync/s3_bucket.rb in datapimp-1.0.10 vs lib/datapimp/sync/s3_bucket.rb in datapimp-1.0.11
- old
+ new
@@ -11,11 +11,11 @@
bucket.save
storage.put_bucket_website(remote, 'index.html', key: 'error.html')
end
if redirect == true
- binding.pry
+ log "Should be creating a redirect bucket"
end
end
end
def cloudfront
@@ -55,20 +55,11 @@
# builds a manifest of MD5 hashes for each file
# so that we aren't deploying stuff which is the
# same since last time we deployed
def prepare_manifest_for(entries)
- m = deploy_manifest
-
- entries.each do |entry|
- destination = Pathname(entry).relative_path_from(local_path).to_s.without_leading_slash
-
- deploy_manifest.fetch(destination) do
- next unless destination.match(/\w+\.\w+/)
- m[destination] = nil
- end
- end
+ deploy_manifest
end
def run_update_acl_action(options={})
s3.files.each do |file|
file.acl = 'public-read'
@@ -125,9 +116,10 @@
log "Saving deploy manifest. #{ deploy_manifest.keys.length } entries"
deploy_manifest_path.open("w+") {|fh| fh.write(deploy_manifest.to_json) }
end
def run_pull_action(options={})
+
end
def run_create_action(options={})
directories = Datapimp::Sync.amazon.storage.directories