Class: Lono::Sets::Instances::Opts

Inherits:
Opts show all
Defined in:
lib/lono/sets/instances/opts.rb

Instance Method Summary collapse

Methods inherited from Opts

#deploy, #operation_preferences_options

Methods inherited from Cfn::Opts

#base_options, #cancel, #create, #deploy, #download, #notification_arns_option, #preview, #update, #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_optionsObject



21
22
23
24
25
26
27
# File 'lib/lono/sets/instances/opts.rb', line 21

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

#deleteObject



3
4
5
6
7
8
9
# File 'lib/lono/sets/instances/opts.rb', line 3

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

#syncObject



11
12
13
14
15
16
17
18
19
# File 'lib/lono/sets/instances/opts.rb', line 11

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