Module: Sprinkle::Verifiers::File

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

Overview

File Verifier

Contains a verifier to check the existance of a file.

Example Usage

verify { has_file '/etc/apache2/apache2.conf' }

Instance Method Summary collapse

Instance Method Details

#has_file(path) ⇒ Object

Checks to make sure path is a file on the remote server.



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

def has_file(path)
  @commands << "test -f #{path}"
end