public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
schacon (author)
Sat Mar 08 12:27:38 -0800 2008
commit  3fe21594034d22381cc5dbbfef0181b3949e2893
tree    ab87643e09b020797f15477bc5d84965511b5697
parent  e7718c564e758a37489123ba3a097261e73b0369
git-wiki / environment.rb
100644 18 lines (14 sloc) 0.381 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rubygems'
require 'extensions'
require 'page'
 
%w(git redcloth rubypants uv).each do |gem|
  require_gem_with_feedback gem
end
 
GIT_REPO = ARGV[0] || ENV['HOME'] + '/wiki'
HOMEPAGE = 'Home'
UV_THEME = 'idle'
 
unless File.exists?(GIT_REPO) && File.directory?(GIT_REPO)
  puts "Initializing repository in #{GIT_REPO}..."
  Git.init(GIT_REPO)
end
 
$repo = Git.open(GIT_REPO)