Sha256: d9e39acbe41cd3504063d12b43f5d31da4e784d92d357b9e53cc9f5fc704ef91

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

module Sprinkle
  module Installers
    # = Pear Package Installer
    #
    class Pear < Installer
      attr_accessor :packages #:nodoc:

      def initialize(parent, *packages, &block) #:nodoc:
        packages.flatten!

        options.update(packages.pop) if packages.last.is_a?(Hash)

        super parent, options, &block

        @packages = packages
      end

      protected

      def install_commands #:nodoc:
        "pear install #{@packages.join(' ')}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jemmyw-sprinkle-0.2.4 lib/sprinkle/installers/pear.rb