Class: Spork::AppFramework::Padrino
Constant Summary
SUPPORTED_FRAMEWORKS
Instance Method Summary
collapse
[], #bootstrap_required?, detect_framework, detect_framework_name, setup_autoload, short_name, #short_name
Instance Method Details
#boot_contents ⇒ Object
18
19
20
|
# File 'lib/spork/app_framework/padrino.rb', line 18
def boot_contents
@boot_contents ||= File.read(boot_file)
end
|
#entry_point ⇒ Object
Also known as:
boot_file
13
14
15
|
# File 'lib/spork/app_framework/padrino.rb', line 13
def entry_point
@entry_point ||= File.expand_path("config/boot.rb", Dir.pwd)
end
|
#preload(&block) ⇒ Object
3
4
5
6
7
8
9
10
11
|
# 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
Spork.each_run { ::Padrino.reload! }
yield
end
|