lib/liberty_buildpack/framework/dynatrace_one_agent.rb
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

      # create a dynatrace home dir in the droplet
      dynatrace_home = File.join(@app_dir, DYNATRACE_HOME_DIR)
      FileUtils.mkdir_p(dynatrace_home)
      @logger.debug("Dynatrace OneAgent home directory: #{dynatrace_home}")

      download_and_install_agent(dynatrace_home)

      # export dynatrace specific environment variables
      export_dynatrace_app_environment_variables
      export_dynatrace_connection_environment_variables
    end
#-----------------------------------------------------------------------------------------
# Create the dynatrace_one_agent directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the dynatrace_one_agent directory and its contents for the app droplet.
Create the dynatrace_one_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
      dynatrace_home = File.join(@app_dir, DYNATRACE_HOME_DIR)
      FileUtils.mkdir_p(dynatrace_home)
      @logger.debug("Dynatrace OneAgent home directory: #{dynatrace_home}")
      download_and_install_agent(dynatrace_home)
      export_dynatrace_app_environment_variables
      export_dynatrace_connection_environment_variables
    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 dynatrace_home = File . join ( @app_dir , DYNATRACE_HOME_DIR ) FileUtils . mkdir_p ( dynatrace_home ) @logger . debug ( "Dynatrace OneAgent home directory: #{dynatrace_home}" ) download_and_install_agent ( dynatrace_home ) export_dynatrace_app_environment_variables export_dynatrace_connection_environment_variables end
Create the dynatrace_one_agent directory and its contents for the app droplet.
Create the dynatrace_one_agent directory and its contents for the app droplet .
# create a dynatrace home dir in the droplet # export dynatrace specific environment variables