Method: MakeMenu::MenuItem#execute
- Defined in:
- lib/make_menu/menu_item.rb
#execute ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/make_menu/menu_item.rb', line 16 def execute cmd = ['make', target] puts "> #{cmd.join(' ').cyan}\n" unless system(*cmd) # Indicates the command failed, so we pause to allow user to see error message puts "\nPress ENTER to continue....".dark gets end rescue StandardError => _e # Sink keyboard interrupt from within Make target end |