Object
Initializes, stores, and returns a singleton instance of the named AppFramework.
# name - A symbolic name of a AppFramework subclass
Spork::AppFramework[:Rails]
# File lib/spork/app_framework.rb, line 45 def self.[](name) instances[name] ||= const_get(name).new end
Same as detect_framework_name, but returns an instance of the specific AppFramework class.
# File lib/spork/app_framework.rb, line 31 def self.detect_framework name = detect_framework_name self[name] end
Iterates through all SUPPORTED_FRAMEWORKS and returns the symbolic name of the project application framework detected. Otherwise, returns :Unknown
# File lib/spork/app_framework.rb, line 23 def self.detect_framework_name SUPPORTED_FRAMEWORKS.each do |key, value| return key if value.call end :Unknown end
If there is some stuff out of the box that the Spork can do to speed up tests without the test helper file being bootstrapped, this should return false.
# File lib/spork/app_framework.rb, line 54 def bootstrap_required? entry_point.nil? end
Abstract: The path to the file that loads the project environment, ie config/environment.rb. Returns nil if there is none.
# File lib/spork/app_framework.rb, line 59 def entry_point raise NotImplementedError end
Generated with the Darkfish Rdoc Generator 2.