Sha256: 127325ce8226ae7f3520759895249751a1cbf9e299418de7811aa8350a372a49
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
require 'activesupport' require 'taza/options' module Taza class Settings # Taza::Settings.Config('google') def self.config(site_name) site_file(site_name).merge(Options.new.execute) end # Loads the config file for the entire project and returns the hash. # Does not override settings from the ENV variables. def self.config_file YAML.load_file(config_file_path) end def self.config_file_path # :nodoc: File.join(config_folder,'config.yml') end def self.config_folder # :nodoc: File.join(path,'config') end def self.site_file(site_name) # :nodoc: YAML.load_file(File.join(config_folder,"#{site_name.underscore}.yml"))[ENV['TAZA_ENV']] end def self.path # :nodoc: '.' end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
makevoid-taza-0.8.6 | lib/taza/settings.rb |
scudco-taza-0.8.7 | lib/taza/settings.rb |
taza-0.8.7 | lib/taza/settings.rb |