Module: FileProcessingJob::Server
- Defined in:
- lib/fpj/server.rb
Defined Under Namespace
Classes: Config, Connection
Class Method Summary
collapse
Class Method Details
.config(&block) ⇒ Object
112
113
114
115
116
|
# File 'lib/fpj/server.rb', line 112
def self.config(&block)
@@config ||= Config.new()
block.call(@@config) if block
@@config
end
|
.create_directories ⇒ Object
106
107
108
109
110
|
# File 'lib/fpj/server.rb', line 106
def self.create_directories
[config.inbox_directory, config.processing_directory, config.processed_directory, config.error_directory].each do |dir|
FileUtils.mkpath(dir) unless Dir.exists?(dir)
end
end
|