Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.458 kb
root = File.join(File.dirname(__FILE__), "..", "..", "..")
config_file = File.join(root, "config", "moonstone_config.yml")
index = File.expand_path(File.join(root, "index"))
#Make the default index folder
Dir.mkdir(index) unless File.exists?(index)
#Make the default config file
config =<<CONFIG
runs_as_service: false
index_manually: false
path_to_index: #{index}
CONFIG, "w") { |f| f.write(config) } unless File.exists?(config_file)
Jump to Line
Something went wrong with that request. Please try again.