lib/beaker/host/unix/pkg.rb
# Deploy configuration generated by the packaging tooling to this host.
#
# This method calls one of #deploy_apt_repo, #deploy_yum_repo, or
# #deploy_zyp_repo depending on the platform of this Host.
#
# @note See {Beaker::DSL::Helpers#deploy_package_repo} for info on
#       params
Deploy configuration generated by the packaging tooling to this host.
This method calls one of #deploy_apt_repo, #deploy_yum_repo, or
deploy_zyp_repo depending on the platform of this Host.
Deploy configuration generated by the packaging tooling to this host . This method calls one of #deploy_apt_repo #deploy_yum_repo or deploy_zyp_repo depending on the platform of this Host .
def deploy_package_repo(path, name, version)
    if not File.exists? path
      @logger.warning "Was asked to deploy package repository from #{path}, but it doesn't exist!"
      return
    end
    case self['platform']
      when /el-4/
        @logger.debug("Package repo deploy is not supported on rhel4")
      when /fedora|centos|eos|el-/
        deploy_yum_repo(path, name, version)
      when /ubuntu|debian|cumulus/
        deploy_apt_repo(path, name, version)
      when /sles/
        deploy_zyp_repo(path, name, version)
      else
        raise "Package repo cannot be deployed on #{self}; the platform is not supported"
    end
  end
def deploy_package_repo ( path , name , version ) if not File . exists? path @logger . warning "Was asked to deploy package repository from #{path}, but it doesn't exist!" return end case self [ 'platform' ] when / el-4 / @logger . debug ( "Package repo deploy is not supported on rhel4" ) when / fedora|centos|eos|el- / deploy_yum_repo ( path , name , version ) when / ubuntu|debian|cumulus / deploy_apt_repo ( path , name , version ) when / sles / deploy_zyp_repo ( path , name , version ) else raise "Package repo cannot be deployed on #{self}; the platform is not supported" end end
Deploy configuration generated by the packaging tooling to this host.
Deploy configuration generated by the packaging tooling to this host .
# solaris, windows
path
<not_specific>
name
<not_specific>
version
<not_specific>
note
See {Beaker::DSL::Helpers#deploy_package_repo} for info on params
See { Beaker :: DSL :: Helpers#deploy_package_repo } for info on params