module Sprinkle module Verifiers # = Directory Verifier # # Defines a verify which can be used to test the existence of a # directory. module Directory Sprinkle::Verify.register(Sprinkle::Verifiers::Directory) # Tests that the directory dir exists. def has_directory(dir) @commands << "test -d #{dir}" end end end end