Class: UnitHosting::CLI
- Inherits:
-
CommandLineUtils::CLI
- Object
- CommandLineUtils::CLI
- UnitHosting::CLI
- Defined in:
- lib/unit-hosting/cli.rb
Instance Method Summary collapse
- #dispatch(cmd, cmd_argv) ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #version ⇒ Object
Constructor Details
Instance Method Details
#dispatch(cmd, cmd_argv) ⇒ Object
16 17 18 |
# File 'lib/unit-hosting/cli.rb', line 16 def dispatch(cmd,cmd_argv) @commands.send(cmd.sub(/:/,"_")) end |
#version ⇒ Object
10 11 12 13 14 15 |
# File 'lib/unit-hosting/cli.rb', line 10 def version File.open(File.join(File.dirname(__FILE__) , "..","..","VERSION"),"r") { |file| puts file.gets } end |