Class: Lono::CLI

Inherits:
Command show all
Defined in:
lib/lono/cli.rb

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#cleanObject



53
54
55
# File 'lib/lono/cli.rb', line 53

def clean
  Clean.new(options).run
end

#completion(*params) ⇒ Object



59
60
61
# File 'lib/lono/cli.rb', line 59

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



65
66
67
# File 'lib/lono/cli.rb', line 65

def completion_script
  Completer::Script.generate
end

#generateObject



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(options).run
  Template::DSL.new(options).run
  Param::Generator.generate_all(options)
end

#import(source) ⇒ Object



15
16
17
# File 'lib/lono/cli.rb', line 15

def import(source)
  Importer.new(source, options).run
end

#summary(name) ⇒ Object



40
41
42
# File 'lib/lono/cli.rb', line 40

def summary(name)
  Lono::Inspector::Summary.new(name, options).run
end

#user_data(name) ⇒ Object



33
34
35
36
# File 'lib/lono/cli.rb', line 33

def user_data(name)
  Script::Build.new(options).run
  UserData.new(options.merge(name: name)).generate
end

#versionObject



70
71
72
# File 'lib/lono/cli.rb', line 70

def version
  puts VERSION
end

#xgraph(name) ⇒ Object



48
49
50
# File 'lib/lono/cli.rb', line 48

def xgraph(name)
  Lono::Inspector::Graph.new(name, options).run
end