class Stockboy::Configuration
Global Stockboy
configuration options
Attributes
logger[RW]
Default logger
@return [Logger]
template_load_paths[RW]
Directories where Stockboy
job template files can be found.
Needs to be configured with your own paths if running standalone. When running with Rails, includes config/stockboy_jobs
by default.
@return [Array<String>]
tmp_dir[RW]
Path for storing tempfiles during processing
@return [String]
translation_error_handler[RW]
To allow inspection when tranlastion error occurs
By default returns nil on error but can be overridden
Public Class Methods
new() { |self| ... }
click to toggle source
Initialize a set of global configuration options
@yield self for configuration
# File lib/stockboy/configuration.rb, line 41 def initialize @template_load_paths = [] @logger = Logger.new(STDOUT) @tmp_dir = Dir.tmpdir @translation_error_handler = ->(error) { nil } yield self if block_given? end