Method: Wiki2Go::Configuration#existing_configuration

Defined in:
lib/Wiki2Go/Install/make_site.rb

#existing_configurationObject

Return a Wiki2GoConfig object, if there is a CgiOptions.rb file Returns nil if no configuration could be read



58
59
60
61
62
63
64
65
66
# File 'lib/Wiki2Go/Install/make_site.rb', line 58

def existing_configuration
  configfile = File.join(@directory,'site','scripts','CgiOptions.rb')
  if File.exists?(configfile) then
    load configfile
    @cgi_options = CgiOptions.new
    return @cgi_options
  end
  return nil
end