Class: Engineyard::Hudson::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/engineyard-hudson/cli.rb

Instance Method Summary collapse

Instance Method Details

#install(project_path) ⇒ Object


9
10
11
12
# File 'lib/engineyard-hudson/cli.rb', line 9

def install(project_path)
  require 'engineyard-hudson/cli/install'
  Engineyard::Hudson::Install.start(ARGV[1..-1])
end

#server(project_path) ⇒ Object


15
16
17
18
# File 'lib/engineyard-hudson/cli.rb', line 15

def server(project_path)
  require 'engineyard-hudson/cli/server'
  Engineyard::Hudson::Server.start(ARGV[1..-1])
end

#versionObject


21
22
23
24
# File 'lib/engineyard-hudson/cli.rb', line 21

def version
  require 'engineyard-hudson/version'
  shell.say Engineyard::Hudson::VERSION
end