Class: Lono::CLI
Instance Method Summary collapse
- #clean ⇒ Object
- #completion(*params) ⇒ Object
- #completion_script ⇒ Object
- #generate ⇒ Object
- #import(source) ⇒ Object
- #summary(name) ⇒ Object
- #user_data(name) ⇒ Object
- #version ⇒ Object
- #xgraph(name) ⇒ Object
Methods inherited from Command
alter_command_description, command_help, dispatch, website
Instance Method Details
#completion(*params) ⇒ Object
59 60 61 |
# File 'lib/lono/cli.rb', line 59 def completion(*params) Completer.new(CLI, *params).run end |
#completion_script ⇒ Object
65 66 67 |
# File 'lib/lono/cli.rb', line 65 def completion_script Completer::Script.generate end |
#generate ⇒ Object
23 24 25 26 27 28 |
# File 'lib/lono/cli.rb', line 23 def generate puts "Generating CloudFormation templates, parameters, and scripts" Script::Build.new().run Template::DSL.new().run Param::Generator.generate_all() end |
#import(source) ⇒ Object
15 16 17 |
# File 'lib/lono/cli.rb', line 15 def import(source) Importer.new(source, ).run end |
#summary(name) ⇒ Object
40 41 42 |
# File 'lib/lono/cli.rb', line 40 def summary(name) Lono::Inspector::Summary.new(name, ).run end |
#user_data(name) ⇒ Object
33 34 35 36 |
# File 'lib/lono/cli.rb', line 33 def user_data(name) Script::Build.new().run UserData.new(.merge(name: name)).generate end |
#version ⇒ Object
70 71 72 |
# File 'lib/lono/cli.rb', line 70 def version puts VERSION end |