Sha256: a3fa54660d398a479b8e632e6a3060ee45e85b844364726c6b4c5b2424dbcd5d

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

module Sprinkle
  module Installers
    class Pacman < Installer
      attr_accessor :packages

      def initialize(parent, *packages, &block)
        super parent, options, &block

        packages = [packages] unless packages.is_a?(Array)
        packages.flatten!


        @packages = packages
      end

      protected

      def install_commands
        "pacman -Sy #{@packages.join(' ')} --no-confirm --needed"  
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/installers/pacman.rb
sprinkle-0.4.1 lib/sprinkle/installers/pacman.rb
sprinkle-0.4.0 lib/sprinkle/installers/pacman.rb
sprinkle-0.3.6 lib/sprinkle/installers/pacman.rb
sprinkle-0.3.5 lib/sprinkle/installers/pacman.rb