class Lono::SetInstances::Opts

Public Instance Methods

accounts_options() click to toggle source
# 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() click to toggle source
# File lib/lono/set_instances/opts.rb, line 7
def create
  delete
end
delete() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# File lib/lono/set_instances/opts.rb, line 3
def update
  delete
end