Sha256: dd7d293a8fd84b815b73bfaab27c08ff9dabe7f4da975e2f8604d5bce11891a9

Contents?: true

Size: 394 Bytes

Versions: 45

Compression:

Stored size: 394 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)
        @commands << "test -d #{dir}"
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 12 rubygems

Version Path
auser-sprinkle-0.1.6 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.1.6 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.1.7 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.1.8 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.1.9 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.0 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.1 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.2 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.3 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.4 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.5 lib/sprinkle/verifiers/directory.rb
crafterm-sprinkle-0.2.6 lib/sprinkle/verifiers/directory.rb
jemmyw-sprinkle-0.2.3 lib/sprinkle/verifiers/directory.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/verifiers/directory.rb
jsierles-sprinkle-0.1.9 lib/sprinkle/verifiers/directory.rb
justsee-sprinkle-0.2.4 lib/sprinkle/verifiers/directory.rb
mdwan-sprinkle-0.2.2 lib/sprinkle/verifiers/directory.rb
mdwan-sprinkle-0.2.3 lib/sprinkle/verifiers/directory.rb
mitchellh-sprinkle-0.1.6 lib/sprinkle/verifiers/directory.rb
trevorturk-sprinkle-0.2.2 lib/sprinkle/verifiers/directory.rb