Class: Rays::Worker::Builder::EARMaven

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

Overview

EAR Maven builder

Instance Method Summary collapse

Methods inherited from Rays::Worker::BaseWorker

#execute, register

Instance Method Details

#build(app_module, skip_test = false) ⇒ Object



47
48
49
50
51
52
53
54
55
56
# File 'lib/rays/workers/builder.rb', line 47

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 EE modules to the local repository")
    rays_exec("#{$rays_config.mvn} install #{test_args}")
  end
end