Sha256: 2b458e45d5641fa51fe3cdaf40a003009baa9cb47b5308669313a8fade8c6474
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
module Eddy # Configuration for Eddy class Config # @return [String<"test", "development", "production">] ("development") attr_accessor :env # Method used by Eddy to persist data about EDI control numbers. # @return [Symbol<:memory, :file>] (:memory) attr_accessor :persistence_method # @return [String] attr_accessor :tmp_dir # @return [String] attr_accessor :build_dir # @return [Boolean] (true) attr_accessor :colorize_errors # @return [Boolean] (true) attr_accessor :validate # @return [void] def initialize() self.env = "development" self.persistence_method = :memory self.tmp_dir = File.join(Eddy::Util.root_dir, "tmp") self.build_dir = File.join(Eddy::Util.root_dir, "build") self.colorize_errors = true self.validate = true end end # Configuration for Eddy # # @return [Eddy::Config] def self.config() @config ||= Config.new end # Modify Eddy's current config # # @example # Eddy.configure do |config| # config.persistence_method = :file # end # # @yieldparam [Eddy::Config] config current Eddy config # @return [void] def self.configure() yield self.config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eddy-0.3.0 | lib/eddy/config.rb |