Class: Guard::Gotest
- Defined in:
- lib/guard/gotest.rb,
lib/guard/gotest/runner.rb
Defined Under Namespace
Classes: Runner
Instance Attribute Summary collapse
-
#runner ⇒ Object
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Gotest
constructor
A new instance of Gotest.
- #run_all ⇒ Object
- #run_on_changes(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
9 10 11 |
# File 'lib/guard/gotest.rb', line 9 def runner @runner end |
Instance Method Details
#run_all ⇒ Object
30 31 32 |
# File 'lib/guard/gotest.rb', line 30 def run_all # TODO end |
#run_on_changes(paths) ⇒ Object
34 35 36 |
# File 'lib/guard/gotest.rb', line 34 def run_on_changes(paths) @runner.run(paths) end |
#start ⇒ Object
20 21 22 23 |
# File 'lib/guard/gotest.rb', line 20 def start UI.info "Guard::Gotest is running" run_all if @options[:all_on_start] end |
#stop ⇒ Object
25 26 27 28 |
# File 'lib/guard/gotest.rb', line 25 def stop @runner.stop UI.info "Stopping Guard::Gotest" end |