Class: Guard::FonesFunctions
- Inherits:
-
Guard
- Object
- Guard
- Guard::FonesFunctions
- Defined in:
- lib/guard/fones/functions.rb
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ FonesFunctions
constructor
A new instance of FonesFunctions.
- #run_all ⇒ Object
-
#run_on_change(paths) ⇒ Object
Called on file(s) modifications.
- #start ⇒ Object
Constructor Details
#initialize(watchers = [], options = {}) ⇒ FonesFunctions
Returns a new instance of FonesFunctions.
6 7 8 |
# File 'lib/guard/fones/functions.rb', line 6 def initialize(watchers=[], ={}) super end |
Instance Method Details
#run_all ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/guard/fones/functions.rb', line 16 def run_all UI.info "Rebuilding all functions" ::Fones::Guard.builder.clean_functions ::Fones::Guard.builder.copy_functions ::Fones::Guard.builder.clean_includes ::Fones::Guard.builder.copy_includes end |
#run_on_change(paths) ⇒ Object
Called on file(s) modifications
25 26 27 28 29 30 31 |
# File 'lib/guard/fones/functions.rb', line 25 def run_on_change(paths) UI.info "Functions have changed, copying over" ::Fones::Guard.builder.clean_functions ::Fones::Guard.builder.copy_functions ::Fones::Guard.builder.clean_includes ::Fones::Guard.builder.copy_includes end |