module Pra::PullSourceFactory
Public Class Methods
build_pull_source(pull_source_config)
click to toggle source
# File lib/pra/pull_source_factory.rb, line 6 def self.build_pull_source(pull_source_config) klass = map_type_to_klass(pull_source_config["type"]) klass.new(pull_source_config["config"]) end
map_type_to_klass(type)
click to toggle source
# File lib/pra/pull_source_factory.rb, line 11 def self.map_type_to_klass(type) case type when 'stash' return StashPullSource when 'github' return GithubPullSource end end