Sha256: ef0fb91b78abfd71d8d57249c3efb885613c6c4e04aea7b5a0455baf2030702e
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
module Empezar class Runner def self.run argument = 'config/main.yaml' self.start_logger self.start_configuration argument end def self.start_configuration argument unless File.exist? argument raise ConfigurationFileMissingException, "The configuration file is missing from '#{argument}'" end Empezar::Configuration.instance.merge! SymbolMatrix.new argument end def self.start_logger Dir.mkdir 'log' unless Dir.exist? 'log' Empezar::Log.start Logger.new 'log/main.log', 'daily' end end end class Runner class << self def method_missing *args Empezar::Runner.send *args end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
empezar-0.0.2 | lib/empezar/runner.rb |