enum

Hwaro::Services::PublishState

Inherits Enum < Comparable < Value < Object

Publication state a file will have in a DEFAULT hwaro build.

draft alone never described that: the build also drops future-dated pages (date in the future) and expired ones (expires in the past), and it honours a draft cascaded from an ancestor section. Reporting all three as "published" made tool list published and tool stats disagree with the site the very next build shipped.

Constants

Published = 0
Draft = 1
Future = 2
Expired = 3

Instance methods

draft?

Returns true if this enum value equals Draft

Source
expired?

Returns true if this enum value equals Expired

Source
future?

Returns true if this enum value equals Future

Source
label
Source
published?

Returns true if this enum value equals Published

Source