Sha256: b2a547b8f53804970ab766f8f143fe0267fe742377e48024d2b1ce0b3dad7927

Contents?: true

Size: 381 Bytes

Versions: 12

Compression:

Stored size: 381 Bytes

Contents

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 <tt>dir</tt> exists.
      def has_directory(dir)
        test "-d #{dir}"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sprinkle-0.7.1.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.7.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.7 lib/sprinkle/verifiers/directory.rb
sprinkle-0.6.2 lib/sprinkle/verifiers/directory.rb
sprinkle-0.6.1.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.6.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.6.0 lib/sprinkle/verifiers/directory.rb
sprinkle-0.5.2 lib/sprinkle/verifiers/directory.rb
sprinkle-0.5.1.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.5.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.5.0 lib/sprinkle/verifiers/directory.rb
sprinkle-0.5.0.rc1 lib/sprinkle/verifiers/directory.rb