Module: R10K::CLI
- Defined in:
- lib/r10k/cli.rb,
lib/r10k/cli/cache.rb,
lib/r10k/cli/module.rb,
lib/r10k/cli/environment.rb,
lib/r10k/cli/synchronize.rb
Defined Under Namespace
Modules: Cache, Environment, Module, Synchronize
Class Method Summary collapse
Class Method Details
.command ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/r10k/cli.rb', line 7 def self.command @cmd ||= Cri::Command.define do name 'r10k' usage 'r10k <subcommand> [options]' summary 'Killer robot powered Puppet environment deployment' description <<-EOD r10k is a suite of commands to help deploy and manage puppet code for complex environments. EOD flag :h, :help, 'show help for this command' do |value, cmd| puts cmd.help exit 0 end required :c, :config, 'Specify a configuration file' do |value, cmd| R10K::Deployment.config.configfile = value end required :v, :verbose, 'Set verbosity level' do |value, cmd| R10K::Logging.level = Integer(value) end flag :t, :trace, 'Display stack traces on application crash' run do |opts, args, cmd| puts cmd.help exit 0 end end end |