Class: CuttingEdge::GithubRepository
- Inherits:
-
Repository
- Object
- Repository
- CuttingEdge::GithubRepository
- Includes:
- GithubMixin
- Defined in:
- lib/cutting_edge/repo.rb
Constant Summary collapse
- HOST =
'https://api.github.com'
Constants inherited from Repository
Repository::DEFAULT_LANG, Repository::DEPENDENCY_TYPES
Instance Attribute Summary
Attributes inherited from Repository
#auth_token, #contact_email, #dependency_types, #lang, #locations
Instance Method Summary collapse
Methods included from GithubMixin
Methods inherited from Repository
headers, #hidden?, #hidden_token, #identifier, #initialize
Constructor Details
This class inherits a constructor from CuttingEdge::Repository
Instance Method Details
#source ⇒ Object
142 143 144 |
# File 'lib/cutting_edge/repo.rb', line 142 def source 'github' end |
#url_for_file(file) ⇒ Object
150 151 152 |
# File 'lib/cutting_edge/repo.rb', line 150 def url_for_file(file) File.join(HOST, 'repos', @org, @name, 'contents', "#{file}?ref=#{@branch}") end |
#url_for_project ⇒ Object
146 147 148 |
# File 'lib/cutting_edge/repo.rb', line 146 def url_for_project File.join('https://github.com', @org, @name) end |