Sha256: 573b96a675682ea902394422a1db1b7ad3d27f11a278e089d83fd4cffbbd0b60
Contents?: true
Size: 638 Bytes
Versions: 107
Compression:
Stored size: 638 Bytes
Contents
require 'logger' module Dynomite::Core # Ensures trailing slash # Useful for appending a './' in front of a path or leaving it alone. # Returns: '/path/with/trailing/slash/' or './' @@app_root = nil def app_root return @@app_root if @@app_root @@app_root = ENV['APP_ROOT'] || ENV['JETS_ROOT'] || ENV['RAILS_ROOT'] @@app_root = '.' if @@app_root.nil? || @app_root == '' @@app_root = "#{@@app_root}/" unless @@app_root.ends_with?('/') @@app_root end @@logger = nil def logger return @@logger if @@logger @@logger = Logger.new($stderr) end def logger=(value) @@logger = value end end
Version data entries
107 entries across 107 versions & 2 rubygems