class Guard::FonesTemplates

Public Class Methods

new(watchers=[], options={}) click to toggle source
Calls superclass method
# File lib/guard/fones/templates.rb, line 6
def initialize(watchers=[], options={})
  super
end

Public Instance Methods

run_all() click to toggle source
# File lib/guard/fones/templates.rb, line 15
def run_all
  UI.info "Rebuilding all templates"
  ::Fones::Guard.builder.clean_templates
  ::Fones::Guard.builder.copy_templates
end
run_on_change(paths) click to toggle source

Called on file(s) modifications

# File lib/guard/fones/templates.rb, line 22
def run_on_change(paths)
  UI.info "Templates have changed, copying over"
  ::Fones::Guard.builder.clean_templates
  ::Fones::Guard.builder.copy_templates
end
start() click to toggle source
# File lib/guard/fones/templates.rb, line 10
def start
  UI.info "Copying templates over"
  ::Fones::Guard.builder.copy_templates
end