Class: Guard::Spin
- Defined in:
- lib/guard/spin.rb,
lib/guard/spin/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 = {}) ⇒ Spin
constructor
A new instance of Spin.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
8 9 10 |
# File 'lib/guard/spin.rb', line 8 def runner @runner end |
Instance Method Details
#reload ⇒ Object
20 21 22 23 |
# File 'lib/guard/spin.rb', line 20 def reload runner.kill_spin runner.launch_spin("Reload") end |
#run_all ⇒ Object
25 26 27 |
# File 'lib/guard/spin.rb', line 25 def run_all runner.run_all end |
#run_on_change(paths) ⇒ Object
29 30 31 |
# File 'lib/guard/spin.rb', line 29 def run_on_change(paths) runner.run(paths) end |
#start ⇒ Object
15 16 17 18 |
# File 'lib/guard/spin.rb', line 15 def start runner.kill_spin runner.launch_spin("Start") end |
#stop ⇒ Object
33 34 35 |
# File 'lib/guard/spin.rb', line 33 def stop runner.kill_spin end |