class Spork::AppFramework::Padrino

Public Instance Methods

boot_contents() click to toggle source
# File lib/spork/app_framework/padrino.rb, line 18
def boot_contents
  @boot_contents ||= File.read(boot_file)
end
boot_file() click to toggle source
Alias for: entry_point
entry_point() click to toggle source
# File lib/spork/app_framework/padrino.rb, line 13
def entry_point
  @entry_point ||= File.expand_path("config/boot.rb", Dir.pwd)
end
Also aliased as: boot_file
preload() { || ... } click to toggle source
# 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