Sha256: 4c68554b1204b07bcb7489d08d9d6d98cbf9015fb1cfdfcb5c8f152ae7d6eb20

Contents?: true

Size: 946 Bytes

Versions: 29

Compression:

Stored size: 946 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 BLUEPRINT", "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)
      Generator.new(options.merge(blueprint: blueprint)).run
    end

    desc "upload", "Uploads templates to configured s3 folder"
    def upload(blueprint)
      Upload.new(options.merge(blueprint: blueprint)).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(options.merge(path: path)).run
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/template.rb
lono-7.5.1 lib/lono/template.rb
lono-7.5.0 lib/lono/template.rb
lono-7.4.11 lib/lono/template.rb
lono-7.4.10 lib/lono/template.rb
lono-7.4.9 lib/lono/template.rb
lono-7.4.8 lib/lono/template.rb
lono-7.4.7 lib/lono/template.rb
lono-7.4.6 lib/lono/template.rb
lono-7.4.5 lib/lono/template.rb
lono-7.4.4 lib/lono/template.rb
lono-7.4.3 lib/lono/template.rb
lono-7.4.2 lib/lono/template.rb
lono-7.4.1 lib/lono/template.rb
lono-7.4.0 lib/lono/template.rb
lono-7.3.2 lib/lono/template.rb
lono-7.3.1 lib/lono/template.rb
lono-7.3.0 lib/lono/template.rb
lono-7.2.3 lib/lono/template.rb
lono-7.2.2 lib/lono/template.rb