module Outil::OCS
Public Class Methods
bootstrap(options={})
click to toggle source
# File lib/outil/ocs.rb, line 13 def bootstrap options={} options.merge! Config.new().params Dir.mkdir(options[:index]) unless Dir.exists?(options[:index]) File.open(options.delete(:path), 'w+') do |f| f.write options.to_yaml end end
config(params={})
click to toggle source
# File lib/outil/ocs.rb, line 9 def config(params={}) @config ||= Config.new(params) end