Module: GollumRails::Setup::Options::ClassMethods

Defined in:
lib/gollum_rails/setup/options.rb

Instance Attribute Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options


21
22
23
# File 'lib/gollum_rails/setup/options.rb', line 21

def options
  @options
end

#repositoryObject

Returns the value of attribute repository


19
20
21
# File 'lib/gollum_rails/setup/options.rb', line 19

def repository
  @repository
end

#startupObject

Returns the value of attribute startup


20
21
22
# File 'lib/gollum_rails/setup/options.rb', line 20

def startup
  @startup
end

#wiki_optionsObject

Reads out the wiki options. Important is, that there needs to be some kind of hash to be present.


11
12
13
14
15
# File 'lib/gollum_rails/setup/options.rb', line 11

def wiki_options
  @wiki_options ||= {}
  return @wiki_options if @wiki_options.kind_of? Hash
  raise InitializationError, "Options must be a kind of Hash. Found: #{@wiki_options.class}"
end

#wiki_pathObject

Returns the value of attribute wiki_path


22
23
24
# File 'lib/gollum_rails/setup/options.rb', line 22

def wiki_path
  @wiki_path
end