Class: Rays::Worker::Builder::EJBMaven

Inherits:
Rays::Worker::BaseWorker show all
Includes:
Singleton
Defined in:
lib/rays/workers/builder.rb

Overview

EJB Maven builder

Instance Method Summary collapse

Methods inherited from Rays::Worker::BaseWorker

#execute, register

Instance Method Details

#build(app_module, skip_test = false) ⇒ Object



64
65
66
67
68
69
70
71
72
73
# File 'lib/rays/workers/builder.rb', line 64

def build(app_module, skip_test = false)
  execute('build', app_module) do
    test_args = ''
    test_args = '-Dmaven.skip.tests=true' if skip_test

    rays_exec("#{$rays_config.mvn} clean")
    $log.info("Installing EJB with it's client to the local maven repository")
    rays_exec("#{$rays_config.mvn} install #{test_args}")
  end
end