lib/beaker/host/unix/pkg.rb
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
#
# @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
name
version
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