Spork::AppFramework::Padrino

Public Instance Methods

boot_contents() click to toggle source
    # File lib/spork/app_framework/padrino.rb, line 18
18:   def boot_contents
19:     @boot_contents ||= File.read(boot_file)
20:   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
13:   def entry_point
14:     @entry_point ||= File.expand_path("config/boot.rb", Dir.pwd)
15:   end
Also aliased as: boot_file
preload(&block) click to toggle source
    # File lib/spork/app_framework/padrino.rb, line 3
 3:   def preload(&block)
 4:     STDERR.puts "Preloading Padrino environment"
 5:     STDERR.flush
 6:     ENV["PADRINO_ENV"] ||= "test"
 7:     require boot_file
 8:     # Make it so that we don't have to restart Spork if we change, say, a model or routes
 9:     Spork.each_run { ::Padrino.reload! }
10:     yield
11:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.