lib/liberty_buildpack/framework/new_relic_agent.rb
#-----------------------------------------------------------------------------------------
# Copies the agent configuration from the buildpack resources directory to the application's droplet.
#------------------------------------------------------------------------------------------
Copies the agent configuration from the buildpack resources directory to the application's droplet.
Copies the agent configuration from the buildpack resources directory to the application ' s droplet .
def copy_agent_config(target_dir)
      agent_resource = File.join('..', '..', '..', 'resources', 'new_relic_agent').freeze
      agent_resource_path = File.expand_path(agent_resource, File.dirname(__FILE__))
      FileUtils.cp_r(agent_resource_path + '/.', target_dir)
    end
def copy_agent_config ( target_dir ) agent_resource = File . join ( '..' , '..' , '..' , 'resources' , 'new_relic_agent' ) . freeze agent_resource_path = File . expand_path ( agent_resource , File . dirname ( __FILE__ ) ) FileUtils . cp_r ( agent_resource_path + '/.' , target_dir ) end
Copies the agent configuration from the buildpack resources directory to the application's droplet.
Copies the agent configuration from the buildpack resources directory to the application ' s droplet .
# only grab the files in the New Relic Agent template
target_dir