Sha256: deb6c7a369cb62134ad97c49c7d14da26c603240aacfdab6aaf270c928130d81

Contents?: true

Size: 468 Bytes

Versions: 12

Compression:

Stored size: 468 Bytes

Contents

module Sprinkle
  module Verifiers
    # = File Verifier
    #
    # Contains a verifier to check the existance of a file.
    # 
    # == Example Usage
    #
    #   verify { has_file '/etc/apache2/apache2.conf' }
    #
    module File
      Sprinkle::Verify.register(Sprinkle::Verifiers::File)
      
      # Checks to make sure <tt>path</tt> is a file on the remote server.
      def has_file(path)
        @commands << "test -f #{path}"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
auser-sprinkle-0.1.6 lib/sprinkle/verifiers/file.rb
crafterm-sprinkle-0.1.6 lib/sprinkle/verifiers/file.rb
crafterm-sprinkle-0.1.7 lib/sprinkle/verifiers/file.rb
crafterm-sprinkle-0.1.8 lib/sprinkle/verifiers/file.rb
crafterm-sprinkle-0.1.9 lib/sprinkle/verifiers/file.rb
crafterm-sprinkle-0.2.0 lib/sprinkle/verifiers/file.rb
jsierles-sprinkle-0.1.9 lib/sprinkle/verifiers/file.rb
mitchellh-sprinkle-0.1.6 lib/sprinkle/verifiers/file.rb
sprinkle-0.1.7 lib/sprinkle/verifiers/file.rb
sprinkle-0.1.8 lib/sprinkle/verifiers/file.rb
sprinkle-0.1.6 lib/sprinkle/verifiers/file.rb
sprinkle-0.1.9 lib/sprinkle/verifiers/file.rb