Sha256: 24ffd785d1e85fe676c1850161d2cbfaa4d583ee8d69340312d0c647de1d3844

Contents?: true

Size: 496 Bytes

Versions: 9

Compression:

Stored size: 496 Bytes

Contents

module Sprinkle
  module Verifiers
    # = Apt package Verifier
    #
    # Contains a verifier to check the existance of an Apt package.
    # 
    # == Example Usage
    #
    #   verify { has_apt 'ntp' }
    #
    module Apt
      Sprinkle::Verify.register(Sprinkle::Verifiers::Apt)

      # Checks to make sure the apt <tt>package</tt> exists on the remote server.
      def has_apt(package)
        @commands << "dpkg --status #{package} | grep \"ok installed\""
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/verifiers/apt.rb
sprinkle-0.4.1 lib/sprinkle/verifiers/apt.rb
sprinkle-0.4.0 lib/sprinkle/verifiers/apt.rb
sprinkle-0.3.6 lib/sprinkle/verifiers/apt.rb
sprinkle-0.3.5 lib/sprinkle/verifiers/apt.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/verifiers/apt.rb
sprinkle-0.3.4 lib/sprinkle/verifiers/apt.rb
sprinkle-0.3.3 lib/sprinkle/verifiers/apt.rb
sprinkle-0.3.2 lib/sprinkle/verifiers/apt.rb