Module: GollumRails::Store::ClassMethods

Defined in:
lib/gollum_rails/store.rb

Instance Method Summary collapse

Instance Method Details

#wikiObject

Gets the wiki instance


7
8
9
10
11
# File 'lib/gollum_rails/store.rb', line 7

def wiki
  raise InitializationError, "Wiki path was not initialized!" if Setup.wiki_path.nil?
  raise InitializationError, "Options are invalid. Please consult the manual." unless Setup.wiki_options.kind_of? Hash
  @wiki = Gollum::Wiki.new(Setup.wiki_path, Setup.wiki_options)
end