lib/cfer/cli.rb in cfer-0.2.0 vs lib/cfer/cli.rb in cfer-0.3.0
- old
+ new
@@ -24,19 +24,18 @@
type: :string,
desc: 'The output format of the stack [table|json]',
default: 'table'
end
- desc 'converge [OPTIONS] <stack-name>', 'Converges a cloudformation stack according to the template'
+ desc 'converge [OPTIONS] <stack-name>', 'Create or update a cloudformation stack according to the template'
#method_option :git_lock,
# type: :boolean,
# default: true,
# desc: 'When enabled, Cfer will not converge a stack in a dirty git tree'
method_option :on_failure,
type: :string,
- default: 'DELETE',
desc: 'The action to take if the stack creation fails'
method_option :follow,
aliases: :f,
type: :boolean,
default: true,
@@ -47,10 +46,21 @@
desc: 'Prints the last (n) stack events.'
method_option :template,
aliases: :t,
type: :string,
desc: 'Override the stack filename (defaults to <stack-name>.rb)'
+ method_option :stack_policy,
+ aliases: :s,
+ type: :string,
+ desc: 'Set a new stack policy on create or update of the stack [file|url|json]'
+ method_option :stack_policy_during_update,
+ aliases: :u,
+ type: :string,
+ desc: 'Set a temporary overriding stack policy during an update [file|url|json]'
+ method_option :timeout,
+ type: :numeric,
+ desc: 'The timeout (in minutes) before the stack operation aborts'
template_options
stack_options
def converge(stack_name)
Cfer.converge! stack_name, options
end
@@ -110,11 +120,11 @@
Cfer::LOGGER.fatal Cfer::Cli.format_backtrace(e.backtrace) unless e.backtrace.empty?
if Cfer::DEBUG
Pry::rescued(e)
else
- Cfer::Util.bug_report(e)
+ #Cfer::Util.bug_report(e)
end
exit 1
end
end
@@ -133,6 +143,5 @@
end
end
-