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
13 |
# File 'lib/staticky/builder.rb', line 13 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 |
# File 'lib/staticky/builder.rb', line 17 def call publish("started") copy_public_files build_site publish("finished") end |
#on(event_type, &block) ⇒ Object
15 |
# File 'lib/staticky/builder.rb', line 15 def on(event_type, &block) = subscribe(event_type, &block) |