Class: Maven::Tools::ArtifactPassthrough

Inherits:
Object
  • Object
show all
Defined in:
lib/maven/tools/maven_project.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ArtifactPassthrough

Returns a new instance of ArtifactPassthrough.



31
32
33
# File 'lib/maven/tools/maven_project.rb', line 31

def initialize(&block)
  @block = block
end

Instance Method Details

#add_artifact(a) ⇒ Object



35
36
37
# File 'lib/maven/tools/maven_project.rb', line 35

def add_artifact(a)
  @block.call(a)
end

#add_repository(name, url) ⇒ Object



39
40
# File 'lib/maven/tools/maven_project.rb', line 39

def add_repository(name, url)
end