Method: MetaCommit::Git::Repo#initialize
- Defined in:
- lib/meta_commit/git/repo.rb
#initialize(repo_path) ⇒ Repo
Returns a new instance of Repo.
15 16 17 18 19 20 21 22 23 |
# File 'lib/meta_commit/git/repo.rb', line 15 def initialize(repo_path) begin @repo = Rugged::Repository.new(repo_path) rescue Rugged::OSError raise MetaCommit::Errors::MissingRepoError rescue Rugged::RepositoryError raise MetaCommit::Errors::MissingRepoError end end |