Module: GritService::Service::Git

Extended by:
Helpers
Defined in:
lib/grit_service/service/git.rb

Instance Method Summary collapse

Methods included from Helpers

service

Instance Method Details

#native(git_dir, cmd, *args) ⇒ Object



31
32
33
34
35
36
37
38
# File 'lib/grit_service/service/git.rb', line 31

def native(git_dir, cmd, *args)
  GritService.log.debug("#{GritService.git(git_dir)}: #{cmd}(#{args.inspect})")
  GritService.git(git_dir).send(cmd, *args)
rescue Exception => e
  GritService.log.error(e.to_s)
  e.backtrace.each {|line| GritService.log.error(line)}
  raise e
end