Module: CuttingEdge::GiteaMixin

Defined in:
lib/cutting_edge/repo.rb

Instance Method Summary collapse

Instance Method Details

#url_for_file(file) ⇒ Object



73
74
75
# File 'lib/cutting_edge/repo.rb', line 73

def url_for_file(file)
  File.join(host, 'api/v1/repos', @org, @name, 'raw', @branch, file)
end

#url_for_projectObject



69
70
71
# File 'lib/cutting_edge/repo.rb', line 69

def url_for_project
  File.join(host, @org, @name)
end