Class: Grit::Repo

Inherits:
Object
  • Object
show all
Defined in:
lib/grit_service/grit/repo.rb

Class Method Summary collapse

Instance Method Summary collapse

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, options = {})
  repo_options = self.class.initialize_repo(path, options)

  @bare = repo_options[:bare]
  self.path = repo_options[:path]
  self.working_dir = repo_options[: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, options)
  GritService.bertrpc.call.repo.initialize_repo(path, options)
end