class Eddy::Config

Configuration for Eddy.

Attributes

build_dir[RW]

@return [String]

colorize_errors[RW]

@return [Boolean] (true)

env[RW]

@return [String<“test”, “development”, “production”>] (“development”)

tmp_dir[RW]

@return [String]

validate[RW]

@return [Boolean] (true)

Public Class Methods

new() click to toggle source

@return [void]

# File lib/eddy/config.rb, line 17
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

Public Instance Methods

persistence_method() click to toggle source

Method used by Eddy to persist data about EDI control numbers. @return [Symbol<:memory, :file>] (:memory)

@return [void]

# File lib/eddy/config.rb, line 30
def persistence_method()
  return @persistence_method
end
persistence_method=(method) click to toggle source

Method used by Eddy to persist data about EDI control numbers.

@param method [Symbol] @return [void]

# File lib/eddy/config.rb, line 38
def persistence_method=(method)
  Eddy.clear_data()
  @persistence_method = method
end