Module: Pot::Verifiers::Apt

Defined in:
lib/pot/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

#has_apt(package) ⇒ Object

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



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

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