Top Level Namespace
Defined Under Namespace
Modules: AWSCarb, ShellSpinner, Subcommands
Instance Method Summary
collapse
#command, #print_actions
Instance Method Details
#debug(message = nil) ⇒ Object
15
16
17
|
# File 'lib/aws-carb/helpers.rb', line 15
def debug(message = nil)
puts message if @GLOBAL_VERBOSE
end
|
#die(error) ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
|
# File 'lib/aws-carb/helpers.rb', line 3
def die(error)
if $GLOBAL_VERBOSE and error.respond_to?('backtrace')
puts "# stack trace:"
puts error.backtrace
puts
end
puts "error: #{error}"
exit 1
end
|
#ShellSpinner(text = nil, colorize = true, &block) ⇒ Object
38
39
40
41
42
|
# File 'lib/aws-carb/monkey_patches.rb', line 38
def ShellSpinner(text = nil, colorize = true, &block)
runner = ShellSpinner::Runner.new
runner.wrap_block(text, colorize, &block)
end
|