lib/liberty_buildpack/framework/appdynamics_agent.rb
#-----------------------------------------------------------------------------------------
# Create the appdynamics_agent directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the appdynamics_agent directory and its contents for the app droplet.
Create the appdynamics_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}, uri #{@uri} is not available, detect needs to be invoked"
      end
      appdynamics_home = File.join(@app_dir, APPDYNAMICS_HOME_DIR)
      FileUtils.mkdir_p(appdynamics_home)
      download_and_install_agent(appdynamics_home)
      copy_agent_config(appdynamics_home)
    end
def compile if @app_dir . nil? raise 'app directory must be provided' elsif @version . nil? || @uri . nil? raise "Version #{@version}, uri #{@uri} is not available, detect needs to be invoked" end appdynamics_home = File . join ( @app_dir , APPDYNAMICS_HOME_DIR ) FileUtils . mkdir_p ( appdynamics_home ) download_and_install_agent ( appdynamics_home ) copy_agent_config ( appdynamics_home ) end
Create the appdynamics_agent directory and its contents for the app droplet.
Create the appdynamics_agent directory and its contents for the app droplet .