Class: Source::Maven

Inherits:
Base show all
Defined in:
lib/gpm/source/maven.rb

Defined Under Namespace

Classes: Factory

Constant Summary

Constants inherited from Base

Base::DEFAULTS

Instance Attribute Summary

Attributes inherited from Base

#files_provider

Attributes included from HasOptionMethods

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

constant_field, #contains_file?, #file_contents, #files, #maintainer

Methods included from HasOptionMethods

included

Constructor Details

#initialize(files_provider, options, effective_pom_reader) ⇒ Maven

Returns a new instance of Maven.



74
75
76
77
# File 'lib/gpm/source/maven.rb', line 74

def initialize(files_provider,options,effective_pom_reader)
  @effective_pom_reader = effective_pom_reader
  super(files_provider, options)
end

Class Method Details

.from_pom(method_name, *path_in_pom) ⇒ Object



68
69
70
71
72
# File 'lib/gpm/source/maven.rb', line 68

def self.from_pom(method_name,*path_in_pom)
  define_method(method_name) do
    self.class.recursive_lookup(effective_pom,*path_in_pom) || Source::Base::DEFAULTS[method_name]
  end
end