Sha256: 1f725a6fdb0176ca87b29ac3d40fa6f68304d16ac8350f2e4de4e173b21bb7d4

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 KB

Contents

require "thor"
require_relative "command"

class Lono::Template < Lono::Command
  autoload :Help, 'lono/template/help'
  autoload :Helpers, 'lono/template/helpers'
  autoload :Bashify, 'lono/template/bashify'
  autoload :DSL, 'lono/template/dsl'
  autoload :Template, 'lono/template/template'
  autoload :Upload, 'lono/template/upload'
  autoload :AwsServices, 'lono/template/aws_services'

  class_option :quiet, type: :boolean, aliases: "-q", desc: "silence the output"
  class_option :noop, type: :boolean, desc: "noop mode, do nothing destructive"

  desc "generate", "Generate the CloudFormation templates"
  Help.generate
  option :clean, type: :boolean, aliases: "-c", desc: "remove all output files before generating"
  option :project_root, default: ".", aliases: "-r", desc: "project root"
  option :pretty, type: :boolean, default: true, desc: "json pretty the output.  only applies with json format"
  def generate
    DSL.new(options.clone).run
  end

  desc "upload", "Uploads templates to configured s3 folder"
  option :project_root, default: ".", aliases: "-r", desc: "project root"
  def upload
    Upload.new(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"
  Help.bashify
  def bashify(path)
    Bashify.new(path: path).run
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lono-3.4.1 lib/lono/template.rb
lono-3.4.0 lib/lono/template.rb
lono-3.3.4 lib/lono/template.rb
lono-3.3.2 lib/lono/template.rb
lono-3.3.0 lib/lono/template.rb
lono-3.2.1 lib/lono/template.rb
lono-3.2.0 lib/lono/template.rb
lono-3.1.3 lib/lono/template.rb
lono-3.1.2 lib/lono/template.rb
lono-3.1.1 lib/lono/template.rb
lono-3.0.1 lib/lono/template.rb
lono-3.0.0 lib/lono/template.rb