lib/hanzo/cli.rb in hanzo-0.2.3 vs lib/hanzo/cli.rb in hanzo-0.3
- old
+ new
@@ -1,7 +1,8 @@
require 'hanzo/modules/deploy'
require 'hanzo/modules/install'
+require 'hanzo/modules/config'
module Hanzo
class CLI < Base
def run
@options.parse!(@args) if @opts.respond_to? :parse!
@@ -23,18 +24,19 @@
initialize_help
end
end
def initialize_help
- @options.banner = <<-BANNER
-Usage: hanzo action [options]
+ @options.banner = <<-BANNER.unindent
+ Usage: hanzo action [options]
-Available actions:
- deploy - Deploy a branch or a tag
- install - Install Hanzo configuration
+ Available actions:
+ deploy - Deploy a branch or a tag
+ install - Install Hanzo configuration
+ config - Manage Heroku configuration variables
-Options:
-BANNER
+ Options:
+ BANNER
@options.on('-h', '--help', 'You\'re looking at it.') { puts @options }
@options.on('-v', '--version', 'Print version') { puts "Hanzo #{Hanzo::VERSION}" }
end
end
end