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
trevorturk-sprinkle-0.2.6 lib/sprinkle/verifiers/directory.rb
sprinkle-0.4.2 lib/sprinkle/verifiers/directory.rb
sprinkle-0.4.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.4.0 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.6 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.5 lib/sprinkle/verifiers/directory.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.4 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.3 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.2 lib/sprinkle/verifiers/directory.rb
powcloud-sprinkle-0.3.4 lib/sprinkle/verifiers/directory.rb
powcloud-sprinkle-0.3.0 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.3.0 lib/sprinkle/verifiers/directory.rb
maxmpz-sprinkle-0.2.6.1 lib/sprinkle/verifiers/directory.rb
sprinkle-0.2.6 lib/sprinkle/verifiers/directory.rb
sprinkle-0.2.3 lib/sprinkle/verifiers/directory.rb
sprinkle-0.2.4 lib/sprinkle/verifiers/directory.rb
sprinkle-0.2.5 lib/sprinkle/verifiers/directory.rb
sprinkle-0.1.8 lib/sprinkle/verifiers/directory.rb