Method: SimpleDeploy::CLI.usage

Defined in:
lib/simple_deploy/cli.rb

.usageObject



76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/simple_deploy/cli.rb', line 76

def self.usage
  puts 'Usage: simple_deploy command'
  puts ''
  puts 'Append -h for help on specific subcommand.'
  puts ''

  puts 'Commands:'
  commands.each do |cmd|
    $stdout.printf "    %-#{length_of_longest_command}s      %s\n",
                   cmd.command_name,
                   cmd.command_summary
  end
end