module Mu
Constants
- VERSION
Public Class Methods
app()
click to toggle source
# File lib/mu.rb, line 6 def self.app @_app ||= 'application' end
app=(application_name)
click to toggle source
# File lib/mu.rb, line 10 def self.app=(application_name) @_app = application_name end
env()
click to toggle source
# File lib/mu.rb, line 14 def self.env @_env ||= ENV['RACK_ENV'] || 'development' end
env=(environment)
click to toggle source
# File lib/mu.rb, line 18 def self.env=(environment) @_env = environment end
init(app = nil)
click to toggle source
# File lib/mu.rb, line 40 def self.init(app = nil) self.app = app if app # Dotenv gives precedence to files loaded earlier in the list Dotenv.load("#{Mu.env}.env", '.env') end
logger()
click to toggle source
# File lib/mu.rb, line 22 def self.logger @_logger ||= Mu::Logger.new(STDOUT) end
logger=(logger)
click to toggle source
# File lib/mu.rb, line 26 def self.logger=(logger) @_logger = logger end
report_error(_e)
click to toggle source
# File lib/mu.rb, line 30 def self.report_error(_e) # TODO: Add call to abstraction for reporting service raise NotImplementedError, 'Abstraction for reporting errors not yet implemented.' end
report_error!(_e)
click to toggle source
# File lib/mu.rb, line 35 def self.report_error!(_e) # TODO: Add call to abstraction for reporting service raise NotImplementedError, 'Abstraction for reporting errors not yet implemented.' end