Class: Lono::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/lono/opts.rb

Direct Known Subclasses

Cfn::Opts

Instance Method Summary collapse

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

#cleanObject



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

#sourceObject



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

#stackObject



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

#templateObject



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