Module: HTools
- Defined in:
- lib/h_tools.rb,
lib/h_tools/gt/rbs.rb,
lib/h_tools/version.rb
Defined Under Namespace
Modules: Gt
Constant Summary collapse
- DOCS =
'https://github.com/phlowerteam/htools'.freeze
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.cmdline ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/h_tools.rb', line 8 def cmdline return ap("Incorrect command pattern, should be 'ht <tool-name> [<arguments list>...]'. #{DOCS}") if ARGV.size < 2 case ARGV[0] when 'gt-rbs' return ap("Incorrect command pattern, should be 'ht gt-rbs <master branch> <working-branch>'. #{DOCS}") if ARGV.size < 3 Gt::Rbs.call(ARGV[1], ARGV[2]) end end |