Class: Guard::Spinoff
- Defined in:
- lib/guard/spinoff.rb,
lib/guard/spinoff/runner.rb,
lib/guard/spinoff/version.rb
Defined Under Namespace
Classes: Runner
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Attribute Summary collapse
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Spinoff
constructor
A new instance of Spinoff.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
Instance Attribute Details
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
7 8 9 |
# File 'lib/guard/spinoff.rb', line 7 def runner @runner end |
Instance Method Details
#reload ⇒ Object
23 24 25 26 |
# File 'lib/guard/spinoff.rb', line 23 def reload runner.kill runner.launch('Reload') end |
#run_all ⇒ Object
28 29 30 |
# File 'lib/guard/spinoff.rb', line 28 def run_all runner.run_all end |
#run_on_change(paths) ⇒ Object
32 33 34 |
# File 'lib/guard/spinoff.rb', line 32 def run_on_change(paths) runner.run(paths) end |
#start ⇒ Object
14 15 16 17 |
# File 'lib/guard/spinoff.rb', line 14 def start runner.kill runner.launch('Start') end |
#stop ⇒ Object
19 20 21 |
# File 'lib/guard/spinoff.rb', line 19 def stop runner.kill end |