Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 539 Bytes
require "pathname"
# General Language Pack module
module LanguagePack
# detects which language pack to use
# @param [Array] first argument is a String of the build directory
# @return [LanguagePack] the {LanguagePack} detected
def self.detect(*args)
Dir.chdir(args.first)
pack = [ Rails3, Rails2, Rack, Ruby ].detect do |klass|
klass.use?
end
pack ? pack.new(*args) : nil
end
end
require "language_pack/ruby"
require "language_pack/rack"
require "language_pack/rails2"
require "language_pack/rails3"
Jump to Line
Something went wrong with that request. Please try again.