Sha256: da41bbf5144f39230ffab211c0701ca8dd34d71dc680250448fe6604a8eaba0e
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
module Eddy # Configuration for Eddy. class Config # @return [String<"test", "development", "production">] ("development") attr_accessor :env # @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 # Method used by Eddy to persist data about EDI control numbers. # @return [Symbol<:memory, :file>] (:memory) # # @return [void] def persistence_method() return @persistence_method end # Method used by Eddy to persist data about EDI control numbers. # # @param method [Symbol] # @return [void] def persistence_method=(method) Eddy.clear_data() @persistence_method = method end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eddy-0.10.0 | lib/eddy/config.rb |
eddy-0.9.2 | lib/eddy/config.rb |
eddy-0.9.1 | lib/eddy/config.rb |
eddy-0.9.0 | lib/eddy/config.rb |