class Spork::AppFramework::Padrino
def boot_contents
def boot_contents @boot_contents ||= File.read(boot_file) end
def entry_point
def entry_point @entry_point ||= File.expand_path("config/boot.rb", Dir.pwd) end
def preload(&block)
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