Module: Pkg::Util::AptStagingServer

Defined in:
lib/packaging/util/apt_staging_server.rb

Overview

Utility methods for handling Apt staging server.

Class Method Summary collapse

Class Method Details

.send_packages(pkg_directory, apt_component = 'stable') ⇒ Object



4
5
6
7
# File 'lib/packaging/util/apt_staging_server.rb', line 4

def self.send_packages(pkg_directory, apt_component = 'stable')
  %x(apt-stage-artifacts --component=#{apt_component} #{pkg_directory})
  fail 'APT artifact staging failed.' unless $CHILD_STATUS.success?
end