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
Search Repo:
schacon (author)
Thu Mar 06 16:20:07 -0800 2008
commit  8e78701e35bdcbdc365f9569e2d52660900222e6
tree    f77fa5c569be513985eabb98ef597ccec9d1b7ac
parent  7bfdd2d3239f64f95426a8f44a9eb2df5c7725b1 parent  b0f4475857c54a55d030ea14f04137c96a771023
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)