Sha256: 544bf40abbe4c7bed9a5e823c2e163b38fd7884523003ccc02e038a5e1b054a2

Contents?: true

Size: 478 Bytes

Versions: 2

Compression:

Stored size: 478 Bytes

Contents

module Sprinkle
  module Installers
    class Apt < Installer
      attr_accessor :packages

      def initialize(parent, packages, &block)
        super parent, &block
        packages = [packages] unless packages.is_a? Array
        @packages = packages
      end

      protected

        def install_commands
          "DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive apt-get -qyu install #{@packages.join(' ')}"
        end

    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
crafterm-sprinkle-0.1.4 lib/sprinkle/installers/apt.rb
sprinkle-0.1.4 lib/sprinkle/installers/apt.rb