Top Level Namespace

Defined Under Namespace

Modules: Rugged

Constant Summary collapse

CWD =
File.expand_path(File.dirname(__FILE__))
LIBGIT2_DIR =
File.join(CWD, '..', '..', 'vendor', 'libgit2')

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


10
11
12
13
14
15
16
# File 'ext/rugged/extconf.rb', line 10

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