Class: GitPusher::Repo::Factory
- Inherits:
-
Object
- Object
- GitPusher::Repo::Factory
- Defined in:
- lib/gitpusher/repo/factory.rb
Class Method Summary collapse
Class Method Details
.create(config) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gitpusher/repo/factory.rb', line 4 def self.create(config) case config[:type] when /github/i then GitPusher::Repo::GitHub.new(config) when /bitbucket/i then GitPusher::Repo::BitBucket.new(config) else raise "unknown issue tracker type : #{its_type}" end end |