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
28 29 30 |
# File 'lib/menu_commander/command.rb', line 28 def command @command ||= .call end |
#menu ⇒ Object
24 25 26 |
# File 'lib/menu_commander/command.rb', line 24 def ||= Menu.new end |
#run ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/menu_commander/command.rb', line 14 def run raise MenuNotFound.new(paths: , config: config) unless if args['--dry'] say "$ !txtpur!#{command}" else exec command end end |