module Tpt::Rails
Constants
- VERSION
Do not change this manually. Our tooling will do it automatically.
Public Class Methods
configure() { |config| ... }
click to toggle source
USAGE:
In your app in `config/initializers/tpt_rails.rb`:
Tpt::Rails.configure do |config| config.app_name = '…' config.app_env = '…' config.rollbar_access_token = '…' config.rollbar_enabled = true/false config.datadog_statsd_url = '…' config.health_check(:foo) { … } … end
See Tpt::Rails::Config
in `lib/tpt/rails/config.rb` for a list of all configs.
# File lib/tpt/rails.rb, line 30 def configure @config = Tpt::Rails::Config.new yield @config if block_given? @configured = true @config.setup end
configured?()
click to toggle source
Whether the `Tpt::Rails.configure` block has been run yet by the host application.
# File lib/tpt/rails.rb, line 40 def configured? @configured end
release_version()
click to toggle source
This should be set by the deployment tool. E.g. Jenkins: git.io/JJFiD
# File lib/tpt/rails.rb, line 73 def release_version ENV['TPT_RELEASE_VERSION'].presence end