THe JRubyComponent provides all the necessary tasks and configuration to create an appropriate JRuby-based service artifact It can be used/accessed via: service { name 'fancyserv' component('rubyapi', type: JRuby) { mainScript 'app/main.rb' include 'lib', 'app' } }
| Type | Name and description |
|---|---|
void |
apply(Project project, java.lang.Object ext, java.lang.String name) |
protected java.lang.String |
computeArtifactTaskName(java.lang.String componentName) |
protected Task |
createJRubyJarTask(Project project, java.lang.String taskName) |
void |
include(java.lang.Object... arguments)Include files of any format inside of the artifact |
void |
mainScript(java.lang.String mainRbScript)Set the Ruby script which will act as an entry point for the artifact |
| Methods inherited from class | Name |
|---|---|
class AbstractComponent |
apply, createCompressedTasks |
Include files of any format inside of the artifact
Set the Ruby script which will act as an entry point for the artifact
mainRbScript - Full or relative path to a Ruby script which JRuby can execute