class Formatron::CLI
CLI
interface
Public Instance Methods
commands()
click to toggle source
# File lib/formatron/cli.rb, line 19 def commands self.class.instance_methods.each do |method| send(method) if method =~ /_formatron_command$/ end end
global_options()
click to toggle source
# File lib/formatron/cli.rb, line 9 def global_options global_option '-y', '--yes', 'Automatic yes to prompts' global_option '-c', '--credentials FILE', 'The credentials file' global_option( '-d', '--directory DIRECTORY', 'The Formatron configuration directory' ) end
run()
click to toggle source
# File lib/formatron/cli.rb, line 25 def run program :version, Formatron::VERSION program :description, 'Quickly deploy AWS CloudFormation ' \ 'stacks backed by a Chef Server' global_options commands run! end