Class Webby::Journal
In: lib/webby/journal.rb
Parent: Object

The Journal class is used to output simple messages regarding the creation and updating of files when webby applications are run. The output messages will be color coded if the terminal supports the ANSI codes.

Methods

create   create_or_update   exists   force   identical   new   skip   typed_message   update  

Attributes

colorize  [RW] 
logger  [R] 

Public Class methods

Create a new journal

Public Instance methods

Output a create message.

Output a "create" message or an "update" message depending on whether the given page already has a generated output file or not.

Output an exists message.

Output a force message.

Output an identical message.

Output a skip message.

Output a message of the given type using the option color code. The available codes are as follows:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

The color is specified as a string or a symbol.

Output an update message.

[Validate]