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

      jr_home = File.join(@app_dir, JR_HOME_DIR)
      FileUtils.mkdir_p(jr_home)
      FileUtils.rm_r(File.join(jr_home, JREBEL)) if Dir.exist?(File.join(jr_home, JREBEL))
      download_and_install_agent(jr_home)
    end
#-----------------------------------------------------------------------------------------
# Create the JRebel directory and its contents for the app droplet.
#------------------------------------------------------------------------------------------
Create the JRebel directory and its contents for the app droplet.
Create the JRebel 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? || @nosetup_zip.nil?
        raise "Version #{@version}, uri #{@uri}, or new jrebel-nosetup.zip #{@nosetup_zip} is not available, detect needs to be invoked"
      end
      jr_home = File.join(@app_dir, JR_HOME_DIR)
      FileUtils.mkdir_p(jr_home)
      FileUtils.rm_r(File.join(jr_home, JREBEL)) if Dir.exist?(File.join(jr_home, JREBEL))
      download_and_install_agent(jr_home)
    end
def compile if @app_dir . nil? raise 'app directory must be provided' elsif @version . nil? || @uri . nil? || @nosetup_zip . nil? raise "Version #{@version}, uri #{@uri}, or new jrebel-nosetup.zip #{@nosetup_zip} is not available, detect needs to be invoked" end jr_home = File . join ( @app_dir , JR_HOME_DIR ) FileUtils . mkdir_p ( jr_home ) FileUtils . rm_r ( File . join ( jr_home , JREBEL ) ) if Dir . exist? ( File . join ( jr_home , JREBEL ) ) download_and_install_agent ( jr_home ) end
Create the JRebel directory and its contents for the app droplet.
Create the JRebel directory and its contents for the app droplet .