Sha256: 9744c12302e29611b5b948d3dbdda1fb914ad4df0856e82a85c375c2045c1e36

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Sprinkle
  module Verifiers
    # = Dpkg Verifiers
    #
    # This verifier checks if a dpkg package is installed
    module Dpkg
      Sprinkle::Verify.register(Sprinkle::Verifiers::Dpkg)
        
      def has_dpkg(name)
        @commands << "dpkg -s #{name} 2>&1 | grep -e '^Status:.* installed'"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jemmyw-sprinkle-0.2.3 lib/sprinkle/verifiers/dpkg.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/verifiers/dpkg.rb