Sha256: 190d58345c010d6e88c204389ae4edce3720bf326401ab730a563a744afe3bdc

Contents?: true

Size: 189 Bytes

Versions: 4

Compression:

Stored size: 189 Bytes

Contents

require 'technologist/rules/rule'

class DirectoryPresenceRule < Rule
  attr_accessor :directory_name

  def matches?(repository)
    repository.directory_exists?(directory_name)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
technologist-0.6.1 lib/technologist/rules/directory_presence_rule.rb
technologist-0.6.0 lib/technologist/rules/directory_presence_rule.rb
technologist-0.5.0 lib/technologist/rules/directory_presence_rule.rb
technologist-0.4.0 lib/technologist/rules/directory_presence_rule.rb