bin/stack-kicker in stack-kicker-0.0.15 vs bin/stack-kicker in stack-kicker-0.0.16
- old
+ new
@@ -26,18 +26,21 @@
class App
include Methadone::Main
include Methadone::CLILogging
main do |task|
- debug { "#{options}" }
+ debug { "options = #{options}" }
# pass the logger.level into the Stack module
Stack.log_level(logger.level)
if (task != 'show-stacks')
config = Stack.select_stack(options[:stackfile], options['stack'])
end
+ # pass some command line options into the config
+ config['skip-secgroup-sync-deletes'] = options['skip-secgroup-sync-deletes'].nil? ? false : true
+
case task
when 'validate'
Stack.validate(config)
when 'configure-knife'
Stack.generate_knife_rb(config)
@@ -72,9 +75,10 @@
options[:stackfile] = 'Stackfile'
on("--stackfile Stackfile", "Specify an alternative Stackfile")
on("--stack mystack", "Specify the stack in Stackfile that you want to work with")
on("--ssh-user USER", "User to be used for SSH access")
+ on("--skip-secgroup-sync-deletes", "Skip deletes during secgroup-sync, handy for running multiple stacks in the one account with overlapping group names")
arg :task, "task to be performed validate|configure-knife|show-stacks|show-stack|show-running|build|replace|delete|secgroup-sync|ssh"
version Stack::Kicker::VERSION
use_log_level_option