Method: Jets::Cfn::Upload#upload_to_s3
- Defined in:
- lib/jets/cfn/upload.rb
#upload_to_s3(full_path) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/jets/cfn/upload.rb', line 88 def upload_to_s3(full_path) return if identical_on_s3?(full_path) key = s3_key(full_path) obj = s3_resource.bucket(bucket_name).object(key) puts "Uploading s3://#{bucket_name}/#{key}" # uncomment to see and debug obj.upload_file(full_path, acl: "public-read", cache_control: cache_control) end |