class Guard::Tap

Public Instance Methods

make_command(path) click to toggle source
# File lib/guard/tap.rb, line 17
def make_command path
  if options[:command]
    "#{options[:command]} #{Shellwords.escape path} 2>&1"
  else
    "#{Shellwords.escape path} 2>&1"
  end
end
run_on_changes(paths) click to toggle source
# File lib/guard/tap.rb, line 11
def run_on_changes paths
  paths.each{ |path|
    Runner.run make_command(path), path
  }
end