Module: Git::Lighttp::GitHelpers
- Included in:
- HttpBackendHelpers
- Defined in:
- lib/git/lighttp.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#content_type_for_git(name, *suffixes) ⇒ Object
256 257 258 |
# File 'lib/git/lighttp.rb', line 256 def content_type_for_git(name, *suffixes) content_type("application/x-git-#{name}-#{suffixes.compact.join("-")}") end |
#git ⇒ Object
247 248 249 |
# File 'lib/git/lighttp.rb', line 247 def git @git ||= ProjectHandler.new(settings.project_root, settings.git_path) end |
#repository ⇒ Object
251 252 253 254 |
# File 'lib/git/lighttp.rb', line 251 def repository git.repository ||= (params[:repository] || params[:captures].first) git end |