Method: Jets::Cfn::Upload#upload_cfn_templates
- Defined in:
- lib/jets/cfn/upload.rb
#upload_cfn_templates ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jets/cfn/upload.rb', line 20 def upload_cfn_templates puts "Uploading CloudFormation templates to S3." expression = "#{Jets::Naming.template_path_prefix}-*" Dir.glob(expression).each do |path| next unless File.file?(path) key = "jets/cfn-templates/#{File.basename(path)}" obj = s3_resource.bucket(bucket_name).object(key) obj.upload_file(path) end end |