Sha256: fa91639e267154694b4d3ac25ba72097cc87b6001b9baec87f91731a41e4e84e

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

require 'technologist/rules/rule'

class DirectoryPresenceRule < Rule
  attr_accessor :directory_name

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
technologist-0.3.0 lib/technologist/rules/directory_presence_rule.rb
technologist-0.2.1 lib/technologist/rules/directory_presence_rule.rb
technologist-0.2.0 lib/technologist/rules/directory_presence_rule.rb