Method: Guard::Motion::Runner#run
- Defined in:
- lib/guard/motion/runner.rb
#run(paths = nil, options = {}) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/guard/motion/runner.rb', line 15 def run(paths = nil, = {}) if paths.nil? paths = all_spec_paths = [:message] || "Running all specs" else = [:message] || "Running: #{paths.join(' ')}" end return false if paths.empty? UI.info(, :reset => true) output = run_via_pty rake_command(paths) if [:notification] notify(output) end end |