Class: AccuHook::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/accuhook/command_line.rb

Class Method Summary collapse

Class Method Details

.execute(args) ⇒ Object

Parse command line options and execute



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/accuhook/command_line.rb', line 13

def self.execute(args)
  options = parse_options(args)

  case options.command
  when :install
    ret_val = AccuHook::Installation.new(options.path)
    exit 0
  when :version
    puts 'Version 0.0.3'
    exit 0
  end
end