Sha256: f4503748e1d4a4d25779ecd58d69b08ced0b0779ed9a8665e91f9542ddf92631

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

module Sprinkle
  module Verifiers
    # = Dpkg Verifiers
    #
    # This verifier checks if a dpkg package is installed
    module Pear
      Sprinkle::Verify.register(Sprinkle::Verifiers::Pear)

      def has_pear(name, version = nil)
        version = version.nil? ? '' : version.gsub('.', '\.')
        @commands << "pear list --allchannels 2>&1 | grep -e '^#{name}\\s*#{version}.*$'"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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