Sha256: 5428c0a10ead6ad68cc9ee8300b49e2292e0b93676bc0ae146e115ccec113e11
Contents?: true
Size: 1.35 KB
Versions: 7
Compression:
Stored size: 1.35 KB
Contents
require 'thor' require 'lono/cli/help' module Lono class CLI < Thor desc "new [NAME]", "Generates lono starter project" Help.new_long_desc option :force, type: :boolean, aliases: "-f", desc: "override existing starter files" option :quiet, type: :boolean, aliases: "-q", desc: "silence the output" option :format, type: :string, default: "yaml", desc: "starter project template format: json or yaml" def new(project_root) Lono::New.new(options.clone.merge(project_root: project_root)).run end 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 :quiet, type: :boolean, aliases: "-q", desc: "silence the output" option :pretty, type: :boolean, default: true, desc: "json pretty the output. only applies with json format" def generate Lono::DSL.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) Lono::Bashify.new(path: path).run end desc "version", "Prints version" def version puts Lono::VERSION end end end
Version data entries
7 entries across 7 versions & 1 rubygems