module Tracco
Constants
- VERSION
Public Class Methods
environment()
click to toggle source
# File lib/tracco/configuration.rb, line 4 def self.environment ENV['TRACCO_ENV'] end
environment=(env_name)
click to toggle source
# File lib/tracco/configuration.rb, line 8 def self.environment=(env_name) ENV['TRACCO_ENV'] = env_name.to_s end
load_env!()
click to toggle source
# File lib/tracco/configuration.rb, line 12 def self.load_env! begin Database.load_env(environment || "development", ENV['MONGOID_CONFIG_PATH']) rescue Errno::ENOENT => e Trello.logger.warn e.message Trello.logger.warn "try running 'tracco --initialize'" end end