Sha256: 86cc4c7751fbe1580f72366d0cbe118a78461bda2bb623ba1a4b2d4e5d0001a1
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
require 'thor' require 'engineyard-hudson/thor-ext/actions/directory' module Engineyard module Hudson class CLI < Thor 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 desc "server PROJECT_PATH", "Setup a Hudson CI server on AppCloud." def server(project_path) require 'engineyard-hudson/cli/server' 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 private def display(text) shell.say text exit end def error(text) shell.say "ERROR: #{text}", :red exit end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
engineyard-hudson-0.2.2 | lib/engineyard-hudson/cli.rb |
engineyard-hudson-0.2.1 | lib/engineyard-hudson/cli.rb |