Class: Guard::ForgeTemplates
- Inherits:
-
Guard
- Object
- Guard
- Guard::ForgeTemplates
- Defined in:
- lib/guard/forge/templates.rb
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ ForgeTemplates
constructor
A new instance of ForgeTemplates.
- #run_all ⇒ Object
-
#run_on_change(paths) ⇒ Object
Called on file(s) modifications.
- #start ⇒ Object
Constructor Details
#initialize(watchers = [], options = {}) ⇒ ForgeTemplates
Returns a new instance of ForgeTemplates.
6 7 8 |
# File 'lib/guard/forge/templates.rb', line 6 def initialize(watchers=[], ={}) super end |
Instance Method Details
#run_all ⇒ Object
15 16 17 18 19 |
# File 'lib/guard/forge/templates.rb', line 15 def run_all UI.info "Rebuilding all templates" ::Forge::Guard.builder.clean_templates ::Forge::Guard.builder.copy_templates end |