class Guard::Shellexec
Public Instance Methods
run_all()
click to toggle source
# File lib/guard/shellexec.rb, line 11 def run_all run_on_changes Watcher.match_files(self, Dir.glob('{,**/}*{,.*}')) end
run_on_changes(paths)
click to toggle source
# File lib/guard/shellexec.rb, line 15 def run_on_changes(paths) run paths.uniq end
start()
click to toggle source
# File lib/guard/shellexec.rb, line 6 def start UI.info 'Guard::Shellexec is running' run_all if options[:all_on_start] end
Private Instance Methods
run(paths = [])
click to toggle source
# File lib/guard/shellexec.rb, line 21 def run(paths = []) UI.info "shellexec running: #{options[:command]}" system options[:command] end