Class: Staticky::Builder
- Inherits:
-
Object
- Object
- Staticky::Builder
- Defined in:
- lib/staticky/builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
15 |
# File 'lib/staticky/builder.rb', line 15 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/staticky/builder.rb', line 19 def call publish("started") copy_public_files build_site publish("finished") end |
#on(event_type) ⇒ Object
17 |
# File 'lib/staticky/builder.rb', line 17 def on(event_type, &) = subscribe(event_type, &) |