convert $path global to a gollum_path sinatra setting
This commit is contained in:
+3
-2
@@ -38,7 +38,7 @@ end
|
||||
# Read command line options into `options` hash
|
||||
opts.parse!
|
||||
|
||||
$path = ARGV[0] || Dir.pwd
|
||||
gollum_path = ARGV[0] || Dir.pwd
|
||||
|
||||
if options['irb']
|
||||
require 'irb'
|
||||
@@ -67,9 +67,10 @@ if options['irb']
|
||||
end
|
||||
|
||||
require 'gollum'
|
||||
wiki = Gollum::Wiki.new $path
|
||||
wiki = Gollum::Wiki.new gollum_path
|
||||
IRB.start_session binding
|
||||
else
|
||||
require 'gollum/frontend/app'
|
||||
Precious::App.set :gollum_path, gollum_path
|
||||
Precious::App.run!(options)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user