lib/beaker/host/unix/pkg.rb
# Deploy apt configuration generated by the packaging tooling
#
# @note Due to the debian use of codenames in repos, the
#       DEBIAN_PLATFORM_CODENAMES map must be kept up-to-date as
#       support for new versions is added.
#
# @note See {Beaker::DSL::Helpers::HostHelpers#deploy_package_repo} for info on
#       params
Deploy apt configuration generated by the packaging tooling
Deploy apt configuration generated by the packaging tooling
def deploy_apt_repo(path, name, version)
    codename = self['platform'].codename
    if codename.nil?
      @logger.warning "Could not determine codename for debian platform #{self['platform']}. Skipping deployment of repo #{name}"
      return
    end
    repo_file = "#{path}/deb/pl-#{name}-#{version}-#{codename}.list"
    do_scp_to repo_file, "/etc/apt/sources.list.d/#{name}.list", {}
    @apt_needs_update = true
  end
def deploy_apt_repo ( path , name , version ) codename = self [ 'platform' ] . codename if codename . nil? @logger . warning "Could not determine codename for debian platform #{self['platform']}. Skipping deployment of repo #{name}" return end repo_file = "#{path}/deb/pl-#{name}-#{version}-#{codename}.list" do_scp_to repo_file , "/etc/apt/sources.list.d/#{name}.list" , { } @apt_needs_update = true end
Deploy apt configuration generated by the packaging tooling
Deploy apt configuration generated by the packaging tooling
path
<not_specific>
name
<not_specific>
version
<not_specific>
note
Due to the debian use of codenames in repos, the DEBIAN_PLATFORM_CODENAMES map must be kept up-to-date as support for new versions is added.
Due to the debian use of codenames in repos the DEBIAN_PLATFORM_CODENAMES map must be kept up - to - date as support for new versions is added .
note
See {Beaker::DSL::Helpers::HostHelpers#deploy_package_repo} for info on params
See { Beaker :: DSL :: Helpers :: HostHelpers#deploy_package_repo } for info on params