Module: Sprinkle::Verifiers::Directory

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

Overview

Directory Verifier

Defines a verify which can be used to test the existence of a directory.

Instance Method Summary collapse

Instance Method Details

#has_directory(dir) ⇒ Object

Tests that the directory dir exists.



11
12
13
# File 'lib/sprinkle/verifiers/directory.rb', line 11

def has_directory(dir)
  @commands << "test -d #{dir}"
end