Sha256: 249f1f0b520ff5a0cbda846275280a3fe59d5ce8d8a65f73c22990dfc91b9c0a

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

class Lono::SetInstances
  class Opts < Lono::Sets::Opts
    def update
      delete
    end

    def create
      delete
    end

    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

    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

    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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/set_instances/opts.rb
lono-7.5.1 lib/lono/set_instances/opts.rb
lono-7.5.0 lib/lono/set_instances/opts.rb