Sha256: 31d1c69cec7262200d0dbc4083886dd68686285963c67b5532c25276efa5f647

Contents?: true

Size: 169 Bytes

Versions: 4

Compression:

Stored size: 169 Bytes

Contents

require 'technologist/rules/rule'

class FilePresenceRule < Rule
  attr_accessor :file_name

  def matches?(repository)
    repository.file_exists?(file_name)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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