Sha256: 8f9ca1c2b09caaa7a488dee9e48248eac7994f521d32a34e197cd361b2d9ff77

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

require 'technologist/rules/file_xml_content_rule'

class MavenPluginRule < FileXmlContentRule
  attr_accessor :plugin_name

  def initialize(framework, attributes = {})
    super

    self.file_name = 'pom.xml'
    self.css_selector = "dependencies > dependency > groupId[text() = '#{plugin_name}']"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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