Class: Gitomator::GitHub::BaseProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/gitomator/github/base_provider.rb

Direct Known Subclasses

HostingProvider, TaggingProvider

Instance Method Summary collapse

Constructor Details

#initialize(github_client, github_organization = nil) ⇒ BaseProvider

Returns a new instance of BaseProvider.

Parameters:

  • github_client (Octokit::Client)
  • github_organization (String) (defaults to: nil)


14
15
16
17
18
# File 'lib/gitomator/github/base_provider.rb', line 14

def initialize(github_client, github_organization=nil)
  @gh  = github_client
  @org = github_organization
  @repo_name_resolver = Gitomator::Util::Repo::NameResolver.new(@org)
end

Instance Method Details

#nameObject



21
22
23
# File 'lib/gitomator/github/base_provider.rb', line 21

def name
  :github
end