Module: ProScribe::RackApp

Defined in:
lib/proscribe/rack_app.rb

Class Method Summary collapse

Class Method Details

.run!Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/proscribe/rack_app.rb', line 14

def self.run!
  config  = Shake.find_in_project("Scribefile") or return
  project = ProScribe::Project.new(config)
  project.make

  watcher = ProScribe::Watcher.new(project) { |_, file| puts "Updated #{file}" }

  proton = Proton::Project.new(project.dir)

  Proton::Server
end