Module: GritService

Defined in:
lib/grit_service/base.rb,
lib/grit_service/version.rb,
lib/grit_service/service/git.rb,
lib/grit_service/service/repo.rb

Defined Under Namespace

Modules: Helpers, Service

Constant Summary collapse

VERSION =
"2.4.1"

Class Method Summary collapse

Class Method Details

.bertrpc(host = 'localhost', port = 9999) ⇒ Object



13
14
15
# File 'lib/grit_service/base.rb', line 13

def self.bertrpc(host = 'localhost', port = 9999)
  @bertrpc ||= BERTRPC::Service.new(host, port)
end

.git(git_dir) ⇒ Object



4
5
6
7
# File 'lib/grit_service/base.rb', line 4

def self.git(git_dir)
  @gits ||= {}
  @gits[git_dir] ||= Grit::Git.new(git_dir)
end

.logObject



9
10
11
# File 'lib/grit_service/base.rb', line 9

def self.log
  @logger ||= Logger.new('/tmp/grit_service.log')
end