Class: Pah::Templates::Newrelic

Inherits:
Pah::Template
  • Object
show all
Defined in:
lib/pah/templates/newrelic.rb

Instance Method Summary collapse

Methods inherited from Pah::Template

#ask_unless_test, #copy_static_file, #git_commit, #static_files, #will_you_like_to?

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
# File 'lib/pah/templates/newrelic.rb', line 4

def call
  copy_static_file 'config/newrelic.yml'

  gsub_file 'config/newrelic.yml', /PROJECT/, Pah.configuration.app_name

  git add: 'config/newrelic.yml'
  git_commit 'Add New Relic configuration.'
end