Sha256: 4f53a9293e1f4ae45da481e14e04c5bfa8a11556b5df01122ac1b4550dc7a9b6
Contents?: true
Size: 576 Bytes
Versions: 6
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module CiToolkit # Use this to create an instance of Dvcs implementation based on the service type # set in an environment value called DVCS_SERVICW with value of either gitlab or github class DvcsPrFactory SERVICES = { "gitlab" => CiToolkit::GitlabPr, "github" => CiToolkit::GithubPr }.freeze private_constant :SERVICES def self.create(bitrise_env = CiToolkit::BitriseEnv.new) service = ENV["DVCS_SERVICE"] (SERVICES[service.to_s.downcase] || CiToolkit::DvcsPr).new bitrise_env end end end
Version data entries
6 entries across 6 versions & 1 rubygems