Class: Grit::Repo
- Inherits:
-
Object
- Object
- Grit::Repo
- Defined in:
- lib/grit_service/grit/repo.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ Repo
constructor
A new instance of Repo.
Constructor Details
#initialize(path, options = {}) ⇒ Repo
Returns a new instance of Repo.
7 8 9 10 11 12 13 14 15 |
# File 'lib/grit_service/grit/repo.rb', line 7 def initialize(path, = {}) = self.class.initialize_repo(path, ) @bare = [:bare] self.path = [:path] self.working_dir = [:working_dir] self.git = Git.new(self.path) end |
Class Method Details
.initialize_repo(path, options) ⇒ Object
3 4 5 |
# File 'lib/grit_service/grit/repo.rb', line 3 def self.initialize_repo(path, ) GritService.bertrpc.call.repo.initialize_repo(path, ) end |