module Verkilo
Constants
- ROOT
- VERSION
Public Class Methods
config(root_dir = nil)
click to toggle source
# File lib/verkilo.rb, line 17 def self.config(root_dir = nil) root_dir ||= Pathname.new(Dir.pwd) path = root_dir.join("_verkilo.yml") raise "Invalid Verku directory; couldn't found #{path} file." unless File.file?(path) content = File.read(path) erb = ERB.new(content).result SafeYAML::OPTIONS[:default_mode] = true YAML.load(erb, :safe => true) end
logger()
click to toggle source
# File lib/verkilo.rb, line 27 def self.logger @logger ||= Logger.new(File.open("/tmp/verkilo.log", "a")) end