lib/liberty_buildpack/framework/contrast_security_agent.rb
def compile
      if @app_dir.nil?
        raise 'app directory must be provided' if @app_dir.nil?
      elsif @version.nil? || @uri.nil?
        raise "Version #{@version} or uri #{@uri} is not available, detect needs to be invoked"
      end

      # create a contrast home dir in the droplet
      contrast_home = File.join(@app_dir, CONTRAST_DIR)
      FileUtils.mkdir_p(contrast_home)

      write_configuration(find_service['credentials'])
      download_agent(@version, @uri, jar_name, contrast_home)
    end
#-----------------------------------------------------------------------------------------
# Create the contrast directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the contrast directory and its contents for the app droplet.
Create the contrast directory and its contents for the app droplet .
def compile
      if @app_dir.nil?
        raise 'app directory must be provided' if @app_dir.nil?
      elsif @version.nil? || @uri.nil?
        raise "Version #{@version} or uri #{@uri} is not available, detect needs to be invoked"
      end
      contrast_home = File.join(@app_dir, CONTRAST_DIR)
      FileUtils.mkdir_p(contrast_home)
      write_configuration(find_service['credentials'])
      download_agent(@version, @uri, jar_name, contrast_home)
    end
def compile if @app_dir . nil? raise 'app directory must be provided' if @app_dir . nil? elsif @version . nil? || @uri . nil? raise "Version #{@version} or uri #{@uri} is not available, detect needs to be invoked" end contrast_home = File . join ( @app_dir , CONTRAST_DIR ) FileUtils . mkdir_p ( contrast_home ) write_configuration ( find_service [ 'credentials' ] ) download_agent ( @version , @uri , jar_name , contrast_home ) end
Create the contrast directory and its contents for the app droplet.
Create the contrast directory and its contents for the app droplet .
# create a contrast home dir in the droplet