Class: MavenPluginRule
- Inherits:
-
FileXmlContentRule
- Object
- Rule
- FileXmlContentRule
- MavenPluginRule
- Defined in:
- lib/technologist/rules/maven_plugin_rule.rb
Instance Attribute Summary collapse
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
Attributes inherited from FileXmlContentRule
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(framework, attributes = {}) ⇒ MavenPluginRule
constructor
A new instance of MavenPluginRule.
Methods inherited from FileXmlContentRule
Methods inherited from Rule
Constructor Details
#initialize(framework, attributes = {}) ⇒ MavenPluginRule
Returns a new instance of MavenPluginRule.
6 7 8 9 10 11 |
# File 'lib/technologist/rules/maven_plugin_rule.rb', line 6 def initialize(framework, attributes = {}) super self.file_name = 'pom.xml' self.css_selector = "dependencies > dependency > groupId[text() = '#{plugin_name}']" end |
Instance Attribute Details
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
4 5 6 |
# File 'lib/technologist/rules/maven_plugin_rule.rb', line 4 def plugin_name @plugin_name end |