Sha256: 99761c5ee9d7d09c4a08f3f6e2dd2345ebe0c475618754bfcefc574e4c692ab8

Contents?: true

Size: 957 Bytes

Versions: 28

Compression:

Stored size: 957 Bytes

Contents

module Lono
  class Template < Command
    class_option :quiet, type: :boolean, desc: "silence the output"
    class_option :noop, type: :boolean, desc: "noop mode, do nothing destructive"

    desc "generate", "Generate the CloudFormation templates"
    long_desc Lono::Help.text("template/generate")
    option :clean, type: :boolean, desc: "remove all output files before generating"
    def generate(blueprint=nil)
      Blueprint::Find.one_or_all(blueprint).each do |b|
        Generator.new(b, options).run
      end
    end

    desc "upload", "Uploads templates to configured s3 folder"
    def upload(blueprint)
      Upload.new(blueprint, options.clone).run
    end

    desc "bashify URL-OR-PATH", "Convert the UserData section of an existing CloudFormation Template to a starter bash script that is compatiable with lono"
    long_desc Lono::Help.text("template/bashify")
    def bashify(path)
      Bashify.new(path: path).run
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lono-6.1.11 lib/lono/template.rb
lono-6.1.10 lib/lono/template.rb
lono-6.1.9 lib/lono/template.rb
lono-6.1.8 lib/lono/template.rb
lono-6.1.7 lib/lono/template.rb
lono-6.1.6 lib/lono/template.rb
lono-6.1.5 lib/lono/template.rb
lono-6.1.4 lib/lono/template.rb
lono-6.1.3 lib/lono/template.rb
lono-6.1.2 lib/lono/template.rb
lono-6.1.1 lib/lono/template.rb
lono-6.1.0 lib/lono/template.rb
lono-6.0.1 lib/lono/template.rb
lono-6.0.0 lib/lono/template.rb
lono-5.3.4 lib/lono/template.rb
lono-5.3.3 lib/lono/template.rb
lono-5.3.2 lib/lono/template.rb
lono-5.3.1 lib/lono/template.rb
lono-5.3.0 lib/lono/template.rb
lono-5.2.8 lib/lono/template.rb