Top Level Namespace
Defined Under Namespace
Modules: Rugged
Constant Summary collapse
- MAKE =
if Gem.win_platform? # On Windows, Ruby-DevKit only has 'make'. find_executable('make') else find_executable('gmake') || find_executable('make') end
- CWD =
File.(File.dirname(__FILE__))
- LIBGIT2_DIR =
File.join(CWD, '..', '..', 'vendor', 'libgit2')
Instance Method Summary collapse
-
#repo ⇒ Object
Loaded by script/console.
- #sys(cmd) ⇒ Object
Instance Method Details
#repo ⇒ Object
Loaded by script/console. Land helpers here.
8 9 10 |
# File 'lib/rugged/console.rb', line 8 def repo Rugged::Repository.new(File.('../../../', __FILE__)) end |
#sys(cmd) ⇒ Object
18 19 20 21 22 23 24 |
# File 'ext/rugged/extconf.rb', line 18 def sys(cmd) puts " -- #{cmd}" unless ret = xsystem(cmd) raise "ERROR: '#{cmd}' failed" end ret end |