Class: Guard::Tap
- Defined in:
- lib/guard/tap.rb,
lib/guard/tap/runner.rb
Defined Under Namespace
Modules: Runner
Instance Method Summary collapse
Instance Method Details
#make_command(path) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/guard/tap.rb', line 20 def make_command path if [:command] "#{options[:command]} #{Shellwords.escape path} 2>&1" else "#{Shellwords.escape path} 2>&1" end end |
#run_on_changes(paths) ⇒ Object
14 15 16 17 18 |
# File 'lib/guard/tap.rb', line 14 def run_on_changes paths paths.each{ |path| Runner.run make_command(path), path } end |