Class: Lono::Opts
- Inherits:
-
Object
- Object
- Lono::Opts
- Defined in:
- lib/lono/opts.rb
Direct Known Subclasses
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize(cli) ⇒ Opts
constructor
A new instance of Opts.
- #source ⇒ Object
- #stack ⇒ Object
- #template ⇒ Object
Constructor Details
#initialize(cli) ⇒ Opts
Returns a new instance of Opts.
10 11 12 |
# File 'lib/lono/opts.rb', line 10 def initialize(cli) @cli = cli end |
Instance Method Details
#clean ⇒ Object
14 15 16 17 18 |
# File 'lib/lono/opts.rb', line 14 def clean with_cli_scope do option :clean, type: :boolean, default: true, desc: "remove all output files before generating" end end |
#source ⇒ Object
20 21 22 23 24 |
# File 'lib/lono/opts.rb', line 20 def source with_cli_scope do option :source, desc: "url or path to file with template" end end |
#stack ⇒ Object
26 27 28 29 30 |
# File 'lib/lono/opts.rb', line 26 def stack with_cli_scope do option :stack, desc: "stack name. defaults to blueprint name." end end |
#template ⇒ Object
32 33 34 35 36 |
# File 'lib/lono/opts.rb', line 32 def template with_cli_scope do option :template, desc: "override convention and specify the template file to use" end end |