Method: Ore::Project#build!

Defined in:
lib/ore/project.rb

#build!(package = :gem) ⇒ Pathname

Builds a gem for the project.

Parameters:

  • package (Symbol) (defaults to: :gem)

    The type of package to build.

Returns:

  • (Pathname)

    The path to the built gem file within the pkg/ directory.

Raises:

  • (ArgumentError)

    The given package type is not supported.



427
428
429
430
431
432
433
# File 'lib/ore/project.rb', line 427

def build!(package=:gem)
  if package == :gem
    to_gem
  else
    raise(ArgumentError,"unsupported package type #{package}")
  end
end