Class: MenuCommander::Command
- Inherits:
-
MisterBin::Command
- Object
- MisterBin::Command
- MenuCommander::Command
- Includes:
- Colsole
- Defined in:
- lib/menu_commander/command.rb
Instance Method Summary collapse
Instance Method Details
#command ⇒ Object
30 31 32 |
# File 'lib/menu_commander/command.rb', line 30 def command @command ||= .call end |
#run ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/menu_commander/command.rb', line 15 def run raise Exit, VERSION if args['--version'] raise MenuNotFound.new(paths: , config: config) unless if args['--dry'] say "$ !txtpur!#{command}" else exec command end end |