Class: Bora::CliChangeSet

Inherits:
CliBase
  • Object
show all
Defined in:
lib/bora/cli_change_set.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CliBase

banner

Class Method Details

.subcommand_prefixObject

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(options.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(options.file, stack_name).create_change_set(change_set_name, options.description, params, options.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(options.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(options.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(options.file, stack_name).describe_change_set(change_set_name)
end