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



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

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

Instance Method Details

#callObject



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, &)