class CuttingEdge::GithubRepository
Constants
- HOST
Public Instance Methods
source()
click to toggle source
# File lib/cutting_edge/repo.rb, line 142 def source 'github' end
url_for_file(file)
click to toggle source
# 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()
click to toggle source
# File lib/cutting_edge/repo.rb, line 146 def url_for_project File.join('https://github.com', @org, @name) end