Module: Hookworm::Base
Constant Summary collapse
- VERSION =
'0.3.5'
Instance Method Summary collapse
Instance Method Details
#run!(argv) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/hookworm/base.rb', line 10 def run!(argv) abort('No action given!') unless argv.length > 0 action = argv.first if %(configure handle).include?(action) return send(*argv) else abort("I don't know how to #{action.inspect}") end end |