Class: Lono::CLI
- Inherits:
-
Command
show all
- Includes:
- Thor::Actions
- Defined in:
- lib/lono/cli.rb
Instance Method Summary
collapse
Methods inherited from Command
alter_command_description, command_help, dispatch, website
Instance Method Details
#app_files(blueprint) ⇒ Object
65
66
67
|
# File 'lib/lono/cli.rb', line 65
def app_files(blueprint)
Lono::AppFile::Build.new(blueprint, options).run
end
|
#clean ⇒ Object
70
71
72
|
# File 'lib/lono/cli.rb', line 70
def clean
Clean.new(options).run
end
|
#completion(*params) ⇒ Object
76
77
78
|
# File 'lib/lono/cli.rb', line 76
def completion(*params)
Completer.new(CLI, *params).run
end
|
#completion_script ⇒ Object
#generate(blueprint = nil) ⇒ Object
#seed(blueprint) ⇒ Object
58
59
60
|
# File 'lib/lono/cli.rb', line 58
def seed(blueprint)
Seed.new(blueprint, options).create
end
|
#summary(blueprint = nil, template = nil) ⇒ Object
40
41
42
|
# File 'lib/lono/cli.rb', line 40
def summary(blueprint=nil, template=nil)
Lono::Inspector::Summary.new(blueprint, template, options).run
end
|
#user_data(blueprint, name) ⇒ Object
33
34
35
36
|
# File 'lib/lono/cli.rb', line 33
def user_data(blueprint, name)
Script::Build.new(blueprint, options).run
UserData.new(blueprint, options.merge(name: name)).generate
end
|
#version ⇒ Object
87
88
89
90
|
# File 'lib/lono/cli.rb', line 87
def version
puts "Lono: #{VERSION}"
puts "Lono Pro Addon: #{Lono.pro_version}"
end
|
#xgraph(blueprint, template = nil) ⇒ Object
48
49
50
51
|
# File 'lib/lono/cli.rb', line 48
def xgraph(blueprint, template=nil)
template ||= blueprint
Lono::Inspector::Graph.new(blueprint, template, options).run
end
|