Class Webby::AutoBuilder
In: lib/webby/auto_builder.rb
Parent: Object

The AutoBuilder class is used to monitor the content and layouts folders and to compile the resource files only when they are modified. If a layout is modified, then all resources that depend upon the layout are compiled.

Methods

new   run   run   update  

Classes and Modules

Class Webby::AutoBuilder::WebServer

Attributes

logger  [R] 

Public Class methods

Creates a new AutoBuilder and sets it running. This method will only return when the user presses Ctrl-C.

Public Instance methods

Starts the DirectoryWatcher running and waits till the user presses Ctrl-C to stop the watcher thread.

The update method is called by the DirectoryWatcher when files have been modified, added, or deleted. An array of events is passed to his method, and each event contains the event type and the path to the file.

[Validate]