Class: Rays::Worker::Builder::Content
- Inherits:
-
Rays::Worker::BaseWorker
- Object
- Rays::Worker::BaseWorker
- Rays::Worker::Builder::Content
- Includes:
- Singleton
- Defined in:
- lib/rays/workers/builder.rb
Overview
Content builder deprecated
Instance Method Summary collapse
Methods inherited from Rays::Worker::BaseWorker
Instance Method Details
#build(app_module, skip_test = false) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rays/workers/builder.rb', line 82 def build(app_module, skip_test = false) execute('build', app_module) do # replace liferay server port properties_file = Rays::Utils::FileUtils::PropertiesFile.new "#{app_module.path}/src/main/resources/configuration.properties" properties_file.properties['server.port'] = $rays_config.environment.liferay.port properties_file.write test_args = '' test_args = '-Dmaven.skip.tests=true' if skip_test rays_exec("cd #{app_module.path} && #{$rays_config.mvn} clean assembly:single package #{test_args}") end end |