lib/liberty_buildpack/framework/dynatrace_appmon_agent.rb
#-----------------------------------------------------------------------------------------
# Create the dynatrace_agent directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the dynatrace_agent directory and its contents for the app droplet.
Create the dynatrace_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
      dt_home = File.join(@app_dir, DT_HOME_DIR)
      FileUtils.mkdir_p(dt_home)
      @logger.debug("Dynatrace home directory: #{dt_home}")
      download_and_install_agent(dt_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 dt_home = File . join ( @app_dir , DT_HOME_DIR ) FileUtils . mkdir_p ( dt_home ) @logger . debug ( "Dynatrace home directory: #{dt_home}" ) download_and_install_agent ( dt_home ) end
Create the dynatrace_agent directory and its contents for the app droplet.
Create the dynatrace_agent directory and its contents for the app droplet .
# create a dynatrace home dir in the droplet