Top Level Namespace

Defined Under Namespace

Modules: Rugged

Constant Summary collapse

MAKE_PROGRAM =
find_executable('gmake') || find_executable('make')
CWD =
File.expand_path(File.dirname(__FILE__))
LIBGIT2_DIR =
File.join(CWD, '..', '..', 'vendor', 'libgit2')
LIBGIT2_LIB_PATH =
"#{CWD}/libgit2_embed.a"

Instance Method Summary collapse

Instance Method Details

#repoObject

Loaded by script/console. Land helpers here.



3
4
5
# File 'lib/rugged/console.rb', line 3

def repo
  Rugged::Repository.new(File.expand_path('../../../', __FILE__))
end

#sys(cmd) ⇒ Object



13
14
15
16
17
18
19
# File 'ext/rugged/extconf.rb', line 13

def sys(cmd)
  puts " -- #{cmd}"
  unless ret = xsystem(cmd)
    raise "ERROR: '#{cmd}' failed"
  end
  ret
end