Method: Maven::Tools::DSL#organization

Defined in:
lib/maven/tools/dsl.rb

#organization(*args, &block) ⇒ Object



301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/maven/tools/dsl.rb', line 301

def organization( *args, &block )
  if @context == :project
    args, options = args_and_options( *args )
    org = ( @current.organization ||= Organization.new )
    org.name = args[ 0 ]
    org.url = args[ 1 ]
    fill_options( org, options )
    nested_block( :organization, org, block ) if block
    org
  else
    @current.organization = args[ 0 ]
  end
end