# File lib/spork/app_framework/padrino.rb, line 18 def boot_contents @boot_contents ||= File.read(boot_file) end
# File lib/spork/app_framework/padrino.rb, line 13 def entry_point @entry_point ||= File.expand_path("config/boot.rb", Dir.pwd) end
# File lib/spork/app_framework/padrino.rb, line 3 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
Generated with the Darkfish Rdoc Generator 2.