Module: Dolt::View::Urls
- Defined in:
- lib/libdolt/view/urls.rb
Instance Method Summary collapse
- #blame_url(repository, ref, path) ⇒ Object
- #blob_url(repository, ref, path) ⇒ Object
- #history_url(repository, ref, path) ⇒ Object
- #raw_url(repository, ref, path) ⇒ Object
- #submodule_url(repository, ref, object) ⇒ Object
- #tree_history_url(repository, ref, path) ⇒ Object
- #tree_url(repository, ref, path = "") ⇒ Object
Instance Method Details
#blame_url(repository, ref, path) ⇒ Object
34 35 36 |
# File 'lib/libdolt/view/urls.rb', line 34 def blame_url(repository, ref, path) repo_url(repository, "/blame/#{ref}:#{path}") end |
#blob_url(repository, ref, path) ⇒ Object
30 31 32 |
# File 'lib/libdolt/view/urls.rb', line 30 def blob_url(repository, ref, path) repo_url(repository, "/blob/#{ref}:#{path}") end |
#history_url(repository, ref, path) ⇒ Object
38 39 40 |
# File 'lib/libdolt/view/urls.rb', line 38 def history_url(repository, ref, path) repo_url(repository, "/history/#{ref}:#{path}") end |
#raw_url(repository, ref, path) ⇒ Object
42 43 44 |
# File 'lib/libdolt/view/urls.rb', line 42 def raw_url(repository, ref, path) repo_url(repository, "/raw/#{ref}:#{path}") end |
#submodule_url(repository, ref, object) ⇒ Object
22 23 24 |
# File 'lib/libdolt/view/urls.rb', line 22 def submodule_url(repository, ref, object) SubmoduleUrl.for(object) end |
#tree_history_url(repository, ref, path) ⇒ Object
46 47 48 |
# File 'lib/libdolt/view/urls.rb', line 46 def tree_history_url(repository, ref, path) repo_url(repository, "/tree_history/#{ref}:#{path}") end |
#tree_url(repository, ref, path = "") ⇒ Object
26 27 28 |
# File 'lib/libdolt/view/urls.rb', line 26 def tree_url(repository, ref, path = "") repo_url(repository, "/tree/#{ref}:#{path}") end |