Class: Staticky::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/staticky/builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.callObject



13
# File 'lib/staticky/builder.rb', line 13

def self.call(...) = new(...).call

Instance Method Details

#callObject



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)