class Bobkit::Watcher::FileWatcherHandler

Public Instance Methods

filewatcher() click to toggle source
# File lib/bobkit/watcher.rb, line 24
def filewatcher
  Filewatcher.new(paths)
end
watch(paths=nil, &block) click to toggle source
# File lib/bobkit/watcher.rb, line 17
def watch(paths=nil, &block)
  # :nocov:
  @paths = paths
  filewatcher.watch &block
  # :nocov:
end

Protected Instance Methods

all_input_paths() click to toggle source
# File lib/bobkit/watcher.rb, line 34
def all_input_paths
  [ templates_folder, layouts_folder, styles_folder, 
    coffee_folder, assets_folder, locales_folder ]
end
paths() click to toggle source
# File lib/bobkit/watcher.rb, line 30
def paths
  @paths ||= all_input_paths
end