Module: Sprinkle::Verifiers::Apt

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

Overview

Apt package Verifier

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

Example Usage

verify { has_apt 'ntp' }

Instance Method Summary (collapse)

Instance Method Details

- (Object) has_apt(package)

Checks to make sure the apt package exists on the remote server.



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

def has_apt(package)
  @commands << "dpkg --status #{package} | grep \"ok installed\""
end