Class: MavenPluginRule

Inherits:
FileXmlContentRule show all
Defined in:
lib/technologist/rules/maven_plugin_rule.rb

Instance Attribute Summary collapse

Attributes inherited from FileXmlContentRule

#css_selector, #file_name

Attributes inherited from Rule

#framework

Instance Method Summary collapse

Methods inherited from FileXmlContentRule

#matches?

Methods inherited from Rule

#matches?

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_nameObject

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