Sha256: 1d0ff0b1ddb348773d754f9fae8e3b59335a076f702345fd6c3d9c0d316797a7
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require "yaml" module Linner class Environment def initialize(path) @env ||= (YAML::load(File.read path) || Hash.new) @convension = YAML::load File.read(File.join File.dirname(__FILE__), "../../vendor", "config.default.yml") @env = @convension.rmerge!(@env) end %w(app test vendor public).each do |method| define_method("#{method}_folder") do @env["paths"][method] end end def notification @env["notification"] end def wrapper @env["modules"]["wrapper"] end def files @env["files"].values end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linner-0.2.0 | lib/linner/environment.rb |