Module: Sprinkle::Verifiers::Rpm

Defined in:
lib/sprinkle/verifiers/rpm.rb

Overview

RPM Verifier

Contains a verifier to check the existance of an RPM package.

Example Usage

verify { has_rpm 'ntp' }

Instance Method Summary collapse

Instance Method Details

#has_rpm(package) ⇒ Object

Checks to make sure package exists in the rpm installed database on the remote server.



15
16
17
# File 'lib/sprinkle/verifiers/rpm.rb', line 15

def has_rpm(package)
  @commands << "rpm -qa | grep #{package}"
end