bosh-director/lib/bosh/director/jobs/update_release.rb
# Extracts release tarball, verifies release manifest and saves release
# in DB
# @return [void]
Extracts release tarball, verifies release manifest and saves release
in DB
Extracts release tarball verifies release manifest and saves release in DB
def perform
        logger.info("Processing update release")
        if @rebase
          logger.info("Release rebase will be performed")
        end
        single_step_stage("Downloading remote release") { download_remote_release } if @remote_release
        single_step_stage("Extracting release") { extract_release }
        single_step_stage("Verifying manifest") { verify_manifest }
        with_release_lock(@name) { process_release }
        if @rebase && @packages_unchanged && @jobs_unchanged
          raise DirectorError,
                "Rebase is attempted without any job or package changes"
        end
        "Created release `#{@name}/#{@version}'"
      rescue Exception => e
        remove_release_version_model
        raise e
      ensure
        if @tmp_release_dir && File.exists?(@tmp_release_dir)
          FileUtils.rm_rf(@tmp_release_dir)
        end
      end
def perform logger . info ( "Processing update release" ) if @rebase logger . info ( "Release rebase will be performed" ) end single_step_stage ( "Downloading remote release" ) { download_remote_release } if @remote_release single_step_stage ( "Extracting release" ) { extract_release } single_step_stage ( "Verifying manifest" ) { verify_manifest } with_release_lock ( @name ) { process_release } if @rebase && @packages_unchanged && @jobs_unchanged raise DirectorError , "Rebase is attempted without any job or package changes" end "Created release `#{@name}/#{@version}'" rescue Exception => e remove_release_version_model raise e ensure if @tmp_release_dir && File . exists? ( @tmp_release_dir ) FileUtils . rm_rf ( @tmp_release_dir ) end end
Extracts release tarball, verifies release manifest and saves release
in DB
Extracts release tarball verifies release manifest and saves release in DB
None
void