class Guard::Shell
Public Instance Methods
Source
# File lib/guard/shell.rb, line 17 def run_all run_on_modifications(Compat.matching_files(self, Dir.glob('{,**/}*{,.*}'))) end
Call run_on_change for all files which match this guard.
Source
# File lib/guard/shell.rb, line 22 def run_on_modifications(res) $stdout.puts res if res end
Print the result of the command(s), if there are results to be printed.
Source
# File lib/guard/shell.rb, line 8 def start run_all if options[:all_on_start] end
Calls run_all
if the :all_on_start option is present.
Source
# File lib/guard/shell.rb, line 13 def stop end
Defined only to make callback(:stop_begin) and callback(:stop_end) working