Class: Lono::SetInstances::Opts
Instance Method Summary
collapse
#deploy, #operation_preferences_options
Methods inherited from Cfn::Opts
#base_options, #cancel, #deploy, #download, #notification_arns_option, #preview, #update_options, #wait_options
Methods inherited from Opts
#clean, #initialize, #source, #stack, #template
Constructor Details
This class inherits a constructor from Lono::Opts
Instance Method Details
#accounts_options ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/lono/set_instances/opts.rb', line 29
def accounts_options
with_cli_scope do
option :accounts, type: :array, desc: "List of accounts to apply stack set to. IE: 112233445566 223344556677"
option :regions, type: :array, desc: "List of regions to apply stack set to. IE: us-west-2 us-east-1"
option :sure, type: :boolean, desc: "Skip are you sure prompt"
end
end
|
#create ⇒ Object
7
8
9
|
# File 'lib/lono/set_instances/opts.rb', line 7
def create
delete
end
|
#delete ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/lono/set_instances/opts.rb', line 11
def delete
operation_preferences_options
accounts_options
with_cli_scope do
option :all, type: :boolean, desc: "Delete stack all instances. Overrides --accounts and --regions options"
end
end
|
#sync ⇒ Object
19
20
21
22
23
24
25
26
27
|
# File 'lib/lono/set_instances/opts.rb', line 19
def sync
operation_preferences_options
accounts_options
with_cli_scope do
option :delete, type: :boolean, default: true, desc: "Delete stack instances that are not provided"
option :blueprint, desc: "override convention and specify the template file to use"
option :source, desc: "url or path to file with template"
end
end
|
#update ⇒ Object
3
4
5
|
# File 'lib/lono/set_instances/opts.rb', line 3
def update
delete
end
|