Class: Lono::Template::Upload
- Inherits:
-
AbstractBase
- Object
- AbstractBase
- Lono::Template::Upload
- Defined in:
- lib/lono/template/upload.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Upload
constructor
A new instance of Upload.
- #run ⇒ Object
Methods inherited from AbstractBase
Methods included from Blueprint::Root
#find_blueprint_root, #set_blueprint_root
Constructor Details
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/lono/template/upload.rb', line 14 def run puts "Uploading CloudFormation templates..." paths = Dir.glob("#{Lono.config.output_path}/#{@blueprint}/templates/**/*") paths.select { |p| File.file?(p) }.each do |path| Lono::S3::Uploader.new(path).upload end puts "Templates uploaded to s3." end |