Class: DirectoryPresenceRule
- Defined in:
- lib/technologist/rules/directory_presence_rule.rb
Instance Attribute Summary collapse
-
#directory_name ⇒ Object
Returns the value of attribute directory_name.
Attributes inherited from Rule
Instance Method Summary collapse
Methods inherited from Rule
Constructor Details
This class inherits a constructor from Rule
Instance Attribute Details
#directory_name ⇒ Object
Returns the value of attribute directory_name.
4 5 6 |
# File 'lib/technologist/rules/directory_presence_rule.rb', line 4 def directory_name @directory_name end |
Instance Method Details
#matches?(repository) ⇒ Boolean
6 7 8 |
# File 'lib/technologist/rules/directory_presence_rule.rb', line 6 def matches?(repository) repository.directory_exists?(directory_name) end |