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)
Thu Mar 06 15:38:46 -0800 2008
commit  b0f4475857c54a55d030ea14f04137c96a771023
tree    6d5cce86ad1226e575772f1c18c6e214edf17a92
parent  3e835ce51f6057c356854bf80a5c2eb23b12f6c7
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)