Class: DtkCommon::GitRepo::Adapter::Rugged::Tree
- Defined in:
- lib/git_repo/adapters/rugged/tree.rb
Instance Method Summary collapse
- #get_file_content(path) ⇒ Object
-
#initialize(repo_branch, rugged_tree) ⇒ Tree
constructor
A new instance of Tree.
- #list_files ⇒ Object
Constructor Details
#initialize(repo_branch, rugged_tree) ⇒ Tree
Returns a new instance of Tree.
4 5 6 7 |
# File 'lib/git_repo/adapters/rugged/tree.rb', line 4 def initialize(repo_branch,rugged_tree) super(repo_branch) @rugged_tree = rugged_tree end |
Instance Method Details
#get_file_content(path) ⇒ Object
9 10 11 12 13 |
# File 'lib/git_repo/adapters/rugged/tree.rb', line 9 def get_file_content(path) if blob = get_blob(path) blob.content end end |