Module: Repomen::Repo::Service

Defined in:
lib/repomen/repo/service.rb,
lib/repomen/repo/service/base.rb,
lib/repomen/repo/service/git_hub.rb,
lib/repomen/repo/service/bit_bucket.rb

Defined Under Namespace

Classes: Base, BitBucket, GitHub

Class Method Summary collapse

Class Method Details

.for(url) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/repomen/repo/service.rb', line 5

def for(url)
  services.each do |service_class|
    s = service_class.new(url)
    return s if s.applicable?
  end
  nil
end

.servicesObject



13
14
15
# File 'lib/repomen/repo/service.rb', line 13

def services
  [Service::GitHub, Service::BitBucket]
end