Sha256: 69210b1b0aad1c64184114c48a595b2f7ea8406025b3b28c05e0024708105c05
Contents?: true
Size: 569 Bytes
Versions: 16
Compression:
Stored size: 569 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 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
16 entries across 16 versions & 1 rubygems