Sha256: 1687f674839ccd47af08d00b61b5d417c0c00527a83092292caf9f48d404d082
Contents?: true
Size: 808 Bytes
Versions: 6
Compression:
Stored size: 808 Bytes
Contents
module Sprinkle module Installers # The Deb installer installs deb packages sourced from a remote URL # # == Example Usage # # Installing the magic_beans deb. # # package :magic_beans do # deb 'http://debs.example.com/magic_beans.deb' # end # class Deb < PackageInstaller ## # install deb packages from an external URL # :call-seq: # deb(*package_urls) auto_api :deb protected def install_commands #:nodoc: [ "wget -cq --directory-prefix=/tmp #{@packages.join(' ')}", "dpkg -i #{@packages.collect{|p| "/tmp/#{package_name(p)}"}.join(" ")}" ] end private def package_name(url) url.split('/').last end end end end
Version data entries
6 entries across 6 versions & 1 rubygems