Sha256: 3757c5cdb1f95e92e87a6d6fbbf802860d2f1a3f005860301e775603171fe969

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 Bytes

Contents

module Anvil
  class DirectoryAssure < Anvil::FileAssure
    def assured?(dir)
      super && assure_dir?(dir)
    end

    def assure_dir?(dirname)
      File.directory? dirname
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
anvil-core-0.0.1.pre.alpha.3 lib/anvil/assures/directory_assure.rb
anvil-core-0.0.1.pre.alpha.2 lib/anvil/assures/directory_assure.rb
anvil-core-0.0.1.alpha.1 lib/anvil/assures/directory_assure.rb