Class: Bora::CliChangeSet
- Defined in:
- lib/bora/cli_change_set.rb
Class Method Summary collapse
-
.subcommand_prefix ⇒ Object
Fix for incorrect subcommand help.
Instance Method Summary collapse
- #apply(stack_name, change_set_name) ⇒ Object
- #create(stack_name, change_set_name) ⇒ Object
- #delete(stack_name, change_set_name) ⇒ Object
- #list(stack_name) ⇒ Object
- #show(stack_name, change_set_name) ⇒ Object
Methods inherited from CliBase
Class Method Details
.subcommand_prefix ⇒ Object
Fix for incorrect subcommand help. See github.com/erikhuda/thor/issues/261
7 8 9 |
# File 'lib/bora/cli_change_set.rb', line 7 def self.subcommand_prefix 'changeset' end |
Instance Method Details
#apply(stack_name, change_set_name) ⇒ Object
35 36 37 |
# File 'lib/bora/cli_change_set.rb', line 35 def apply(stack_name, change_set_name) stack(.file, stack_name).execute_change_set(change_set_name) end |
#create(stack_name, change_set_name) ⇒ Object
15 16 17 |
# File 'lib/bora/cli_change_set.rb', line 15 def create(stack_name, change_set_name) stack(.file, stack_name).create_change_set(change_set_name, .description, params, .pretty) end |
#delete(stack_name, change_set_name) ⇒ Object
30 31 32 |
# File 'lib/bora/cli_change_set.rb', line 30 def delete(stack_name, change_set_name) stack(.file, stack_name).delete_change_set(change_set_name) end |
#list(stack_name) ⇒ Object
20 21 22 |
# File 'lib/bora/cli_change_set.rb', line 20 def list(stack_name) stack(.file, stack_name).list_change_sets end |
#show(stack_name, change_set_name) ⇒ Object
25 26 27 |
# File 'lib/bora/cli_change_set.rb', line 25 def show(stack_name, change_set_name) stack(.file, stack_name).describe_change_set(change_set_name) end |