# File lib/spork/app_framework/rails.rb, line 130 def boot_file @boot_file ||= File.join(File.dirname(environment_file), 'boot') end
# File lib/spork/app_framework/rails.rb, line 124 def entry_point @entry_point ||= File.expand_path("config/environment.rb", Dir.pwd) end
# File lib/spork/app_framework/rails.rb, line 134 def environment_contents @environment_contents ||= File.read(environment_file) end
# File lib/spork/app_framework/rails.rb, line 116 def preload(&block) STDERR.puts "Preloading Rails environment" STDERR.flush ENV["RAILS_ENV"] ||= 'test' preload_rails yield end
# File lib/spork/app_framework/rails.rb, line 152 def preload_rails Object.const_set(:RAILS_GEM_VERSION, version) if version require boot_file ::Rails::Initializer.send(:include, Spork::AppFramework::Rails::NinjaPatcher) end
Generated with the Darkfish Rdoc Generator 2.