blob: 4f83a77364570f95a350f115c28726073e1f2163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
module QA
module Runtime
##
# Class that is responsible for plugging CE/EE extensions in, depending on
# existence of EE module.
#
# We need that to reduce the probability of conflicts when merging
# CE to EE.
#
class Release
def initialize
require "qa/#{version.downcase}/strategy"
end
def version
@version ||= File.directory?("#{__dir__}/../ee") ? :EE : :CE
end
def strategy
QA.const_get("QA::#{version}::Strategy")
end
def self.method_missing(name, *args)
self.new.strategy.public_send(name, *args)
end
end
end
end
|