class Maven::Tools::DSL::ExclusionsDSL
Public Class Methods
create( dep, *args, &block )
click to toggle source
# File lib/maven/tools/dsl/exclusions_dsl.rb, line 28 def self.create( dep, *args, &block ) a = ExclusionsDSL.new( dep ) args.each do |arg| a << ExclusionDSL.create( dep, *arg ) end a.instance_eval( &block ) if block a end
new( dep )
click to toggle source
# File lib/maven/tools/dsl/exclusions_dsl.rb, line 37 def initialize( dep ) @dep = dep end
Public Instance Methods
exclusion( *args, &block )
click to toggle source
# File lib/maven/tools/dsl/exclusions_dsl.rb, line 48 def exclusion( *args, &block ) self << ExclusionDSL.create( @dep, *args, &block ) end
help()
click to toggle source
# File lib/maven/tools/dsl/exclusions_dsl.rb, line 41 def help warn self.class.help( 'exclusions', :exclusion => nil ) + <<EOS arguments: exclusions 'group_id:artifact_id1', 'group_id:artifact_id2' arguments: exclusions ['group_id','artifact_id1'], ['group_id','artifact_id2'] EOS end
to_coordinate_array()
click to toggle source
# File lib/maven/tools/dsl/exclusions_dsl.rb, line 52 def to_coordinate_array self.collect do |a| a.to_coordinate end end