lib/engineyard-hudson/cli.rb in engineyard-hudson-0.2.0 vs lib/engineyard-hudson/cli.rb in engineyard-hudson-0.2.1
- old
+ new
@@ -3,17 +3,10 @@
module Engineyard
module Hudson
class CLI < Thor
- def self.common_options
- method_option :environment, :type => :string, :aliases => %w(-e),
- :desc => "Environment in which to deploy this application", :required => true
- method_option :account, :type => :string, :aliases => %w(-c),
- :desc => "Name of the account you want to deploy in"
- end
-
desc "install PROJECT_PATH", "Install Hudson node/slave recipes into your project."
def install(project_path)
require 'engineyard-hudson/cli/install'
Engineyard::Hudson::Install.start(ARGV[1..-1])
end
@@ -24,9 +17,10 @@
Engineyard::Hudson::Server.start(ARGV[1..-1])
end
desc "version", "show version information"
def version
+ require 'engineyard-hudson/version'
shell.say Engineyard::Hudson::VERSION
end
map "-v" => :version, "--version" => :version, "-h" => :help, "--help" => :help
\ No newline at end of file