Class: Lono::Cfn::Opts
Direct Known Subclasses
Instance Method Summary collapse
-
#base_options(rollback: true) ⇒ Object
Lono::Cfn and Lono::Sets.
- #cancel ⇒ Object
- #create ⇒ Object
- #delete ⇒ Object
- #deploy ⇒ Object
- #download ⇒ Object
- #notification_arns_option ⇒ Object
- #preview ⇒ Object
- #update ⇒ Object
- #update_options(change_set: true) ⇒ Object
- #wait_options ⇒ Object
Methods inherited from Opts
#clean, #initialize, #source, #stack, #template
Constructor Details
This class inherits a constructor from Lono::Opts
Instance Method Details
#base_options(rollback: true) ⇒ Object
Lono::Cfn and Lono::Sets
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/lono/cfn/opts.rb', line 45 def (rollback: true) with_cli_scope do if rollback option :rollback, type: :boolean, desc: "rollback", default: true end # common to Lono::Cfn and Lono::Sets option :source, desc: "url or path to file with template" option :blueprint, desc: "override convention and specify the template file to use" option :capabilities, type: :array, desc: "iam capabilities. Ex: CAPABILITY_IAM, CAPABILITY_NAMED_IAM" option :config, aliases: "c", desc: "override convention and specify both the param and variable file to use" option :iam, type: :boolean, desc: "Shortcut for common IAM capabilities: CAPABILITY_IAM, CAPABILITY_NAMED_IAM" option :param, aliases: "p", desc: "override convention and specify the param file to use" option :tags, type: :hash, desc: "Tags for the stack. IE: Name:api-web Owner:bob" option :template, desc: "override convention and specify the template file to use" option :variable, aliases: "v", desc: "override convention and specify the variable file to use" end end |
#cancel ⇒ Object
24 25 26 |
# File 'lib/lono/cfn/opts.rb', line 24 def cancel end |
#create ⇒ Object
3 4 5 6 7 |
# File 'lib/lono/cfn/opts.rb', line 3 def create notification_arns_option end |
#delete ⇒ Object
20 21 22 |
# File 'lib/lono/cfn/opts.rb', line 20 def delete end |
#deploy ⇒ Object
16 17 18 |
# File 'lib/lono/cfn/opts.rb', line 16 def deploy update end |
#download ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/lono/cfn/opts.rb', line 36 def download with_cli_scope do option :name, desc: "Name you want to save the template as. Default: existing stack name." option :source, desc: "url or path to file with template" end end |
#notification_arns_option ⇒ Object
82 83 84 85 86 |
# File 'lib/lono/cfn/opts.rb', line 82 def notification_arns_option with_cli_scope do option :notification_arns, type: :array, desc: "The Simple Notification Service (SNS) topic ARNs to publish stack related events." end end |
#preview ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/lono/cfn/opts.rb', line 28 def preview with_cli_scope do option :keep, type: :boolean, desc: "keep the changeset instead of deleting it afterwards" end end |
#update ⇒ Object
9 10 11 12 13 14 |
# File 'lib/lono/cfn/opts.rb', line 9 def update notification_arns_option end |
#update_options(change_set: true) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/lono/cfn/opts.rb', line 70 def (change_set: true) with_cli_scope do if change_set option :change_set, type: :boolean, default: true, desc: "Uses generated change set to update the stack. If false, will perform normal update-stack." option :changeset_preview, type: :boolean, default: true, desc: "Show ChangeSet changes preview." end # common to Lono::Cfn and Lono::Sets option :codediff_preview, type: :boolean, default: true, desc: "Show codediff changes preview." option :param_preview, type: :boolean, default: true, desc: "Show parameter diff preview." end end |
#wait_options ⇒ Object
63 64 65 66 67 68 |
# File 'lib/lono/cfn/opts.rb', line 63 def with_cli_scope do option :wait, type: :boolean, desc: "Wait for stack operation to complete.", default: true option :sure, type: :boolean, desc: "Skip are you sure prompt" # moved to base but used by commands like `lono cfn delete` also. Just keep here. end end |