Sha256: 0b1cc11dd33473ffc95d0623d439f76f16051012e42beb64e1bfe955fd10909f
Contents?: true
Size: 554 Bytes
Versions: 82
Compression:
Stored size: 554 Bytes
Contents
class Spork::AppFramework::Padrino < Spork::AppFramework def preload(&block) STDERR.puts "Preloading Padrino environment" STDERR.flush ENV["PADRINO_ENV"] ||= "test" require boot_file # Make it so that we don't have to restart Spork if we change, say, a model or routes Spork.each_run { ::Padrino.reload! } yield end def entry_point @entry_point ||= File.expand_path("config/boot.rb", Dir.pwd) end alias :boot_file :entry_point def boot_contents @boot_contents ||= File.read(boot_file) end end
Version data entries
82 entries across 82 versions & 7 rubygems
Version | Path |
---|---|
wakiki-spork-0.8.5 | lib/spork/app_framework/padrino.rb |
spork-0.8.4 | lib/spork/app_framework/padrino.rb |