Class: AccuHook::CommandLine
- Inherits:
-
Object
- Object
- AccuHook::CommandLine
- Defined in:
- lib/accuhook/command_line.rb
Class Method Summary collapse
-
.execute(args) ⇒ Object
Parse command line options and execute.
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) = (args) case .command when :install ret_val = AccuHook::Installation.new(.path) exit 0 when :version puts 'Version 0.0.3' exit 0 end end |