Sha256: c88f7931d5af15cf78346b102ddde7525ce2ff559fe686ec0744b911eaa18128
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
module Pah module Templates class Rollbar < Pah::Template def call system 'bundle exec rails generate rollbar' search = <<HEREDOC # Here we'll disable in 'test': if Rails.env.test? config.enabled = false end HEREDOC replace = ' config.enabled = Rails.env.production? || Rails.env.staging?' gsub_file 'config/initializers/rollbar.rb', search, replace git add: 'config/initializers/rollbar.rb' git_commit 'Add rollbar initialize file.' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.20 | lib/pah/templates/rollbar.rb |
pah-0.0.19 | lib/pah/templates/rollbar.rb |
pah-0.0.17 | lib/pah/templates/rollbar.rb |
pah-0.0.16 | lib/pah/templates/rollbar.rb |