Class: Dapp::GitRepo::Own
Overview
Own Git repo
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #container_path ⇒ Object
-
#initialize(dimg) ⇒ Own
constructor
A new instance of Own.
- #latest_commit(branch = nil) ⇒ Object
- #lookup_commit(commit) ⇒ Object
- #path ⇒ Object
Methods inherited from Base
#branch, #cleanup!, #commit_at, #diff, #file_exist_in_tree?, #git_bare
Constructor Details
#initialize(dimg) ⇒ Own
Returns a new instance of Own.
5 6 7 |
# File 'lib/dapp/git_repo/own.rb', line 5 def initialize(dimg) super(dimg, 'own') end |
Instance Method Details
#container_path ⇒ Object
9 10 11 |
# File 'lib/dapp/git_repo/own.rb', line 9 def container_path dimg.container_dapp_path('own', "#{name}.git") end |
#latest_commit(branch = nil) ⇒ Object
19 20 21 |
# File 'lib/dapp/git_repo/own.rb', line 19 def latest_commit(branch = nil) super(branch || 'HEAD') end |