lib/liberty_buildpack/framework/new_relic_agent.rb
#-----------------------------------------------------------------------------------------
# Create the new_relic_agent directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the new_relic_agent directory and its contents for the app droplet.
Create the new_relic_agent directory and its contents for the app droplet .
def compile
      if @app_dir.nil?
        raise 'app directory must be provided'
      elsif @version.nil? || @uri.nil?
        raise "Version #{@version} or uri #{@uri} is not available, detect needs to be invoked"
      end
      nr_home = File.join(@app_dir, NR_HOME_DIR)
      FileUtils.mkdir_p(nr_home)
      copy_agent_config(nr_home)
      download_agent(@version, @uri, jar_name, nr_home)
    end
def compile if @app_dir . nil? raise 'app directory must be provided' elsif @version . nil? || @uri . nil? raise "Version #{@version} or uri #{@uri} is not available, detect needs to be invoked" end nr_home = File . join ( @app_dir , NR_HOME_DIR ) FileUtils . mkdir_p ( nr_home ) copy_agent_config ( nr_home ) download_agent ( @version , @uri , jar_name , nr_home ) end
Create the new_relic_agent directory and its contents for the app droplet.
Create the new_relic_agent directory and its contents for the app droplet .
# create a new relic home dir in the droplet # place new relic resources in newrelic's home dir