Sha256: 94cffda24c938689a9b2d31aad627e706803d2f7cd3b8f545c408e930c20582f

Contents?: true

Size: 499 Bytes

Versions: 13

Compression:

Stored size: 499 Bytes

Contents

module Sprinkle
  module Verifiers
    # = RPM Verifier
    #
    # Contains a verifier to check the existance of an RPM package.
    # 
    # == Example Usage
    #
    #   verify { has_rpm 'ntp' }
    #
    module Rpm
      Sprinkle::Verify.register(Sprinkle::Verifiers::Rpm)
      
      # Checks to make sure <tt>package</tt> exists in the rpm installed database on the remote server.
      def has_rpm(package)
        @commands << "rpm -qa | grep #{package}"
      end
      
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.4.1 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.4.0 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.6 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.5 lib/sprinkle/verifiers/rpm.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.4 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.3 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.2 lib/sprinkle/verifiers/rpm.rb
powcloud-sprinkle-0.3.4 lib/sprinkle/verifiers/rpm.rb
powcloud-sprinkle-0.3.0 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.1 lib/sprinkle/verifiers/rpm.rb
sprinkle-0.3.0 lib/sprinkle/verifiers/rpm.rb