Sha256: 50dd6cc20bdf69399462167194cd5caed21ed7ad22eeaabf921219f25b15dd62

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

module Sprinkle
  module Installers
    class Rpm < 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
          "rpm -Uvh #{@packages.join(' ')}"
        end

    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
auser-sprinkle-0.1.5 lib/sprinkle/installers/rpm.rb
crafterm-sprinkle-0.1.4 lib/sprinkle/installers/rpm.rb
crafterm-sprinkle-0.1.5 lib/sprinkle/installers/rpm.rb
sprinkle-0.1.4 lib/sprinkle/installers/rpm.rb
sprinkle-0.1.5 lib/sprinkle/installers/rpm.rb