[jrubyscripting] Add auto-require scripts option (#12381)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
@@ -6,24 +6,44 @@
|
||||
https://openhab.org/schemas/config-description-1.0.0.xsd">
|
||||
<config-description uri="automation:jruby">
|
||||
|
||||
<parameter-group name="system">
|
||||
<label>System Properties</label>
|
||||
<description>This group defines JRuby system properties.</description>
|
||||
<advanced>true</advanced>
|
||||
<parameter-group name="gems">
|
||||
<label>Ruby Gems</label>
|
||||
<description>This group defines the list of Ruby Gems to install.</description>
|
||||
</parameter-group>
|
||||
|
||||
<parameter-group name="environment">
|
||||
<label>Ruby Environment</label>
|
||||
<description>This group defines Ruby's environment.</description>
|
||||
<advanced>false</advanced>
|
||||
</parameter-group>
|
||||
|
||||
<parameter-group name="gems">
|
||||
<label>Ruby Gems</label>
|
||||
<description>This group defines the list of Ruby Gems to install.</description>
|
||||
<advanced>false</advanced>
|
||||
<parameter-group name="system">
|
||||
<label>System Properties</label>
|
||||
<description>This group defines JRuby system properties.</description>
|
||||
</parameter-group>
|
||||
|
||||
<parameter name="gems" type="text" required="false" groupName="gems">
|
||||
<label>Ruby Gems</label>
|
||||
<description>A comma separated list of Ruby Gems to install.</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="require" type="text" required="false" groupName="gems">
|
||||
<label>Require Scripts</label>
|
||||
<description>A comma separated list of script names to be required by the JRuby Scripting Engine before running user
|
||||
scripts.</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="gem_home" type="text" required="false" groupName="environment">
|
||||
<label>GEM_HOME</label>
|
||||
<description>Location Ruby Gems will be installed and loaded, directory will be created if missing and gem installs
|
||||
are specified. Defaults to "OPENHAB_CONF/scripts/lib/ruby/gem_home" when not specified.</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="rubylib" type="text" required="false" groupName="environment">
|
||||
<label>RUBYLIB</label>
|
||||
<description>Search path for user libraries. Separate each path with a colon (semicolon in Windows). Defaults to
|
||||
"OPENHAB_CONF/automation/lib/ruby" when not specified.</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="local_context" type="text" required="false" groupName="system">
|
||||
<label>Context Instance Type</label>
|
||||
<description>The local context holds Ruby runtime, name-value pairs for sharing variables between Java and Ruby. See
|
||||
@@ -35,6 +55,7 @@
|
||||
<option value="singlethread">SingleThread</option>
|
||||
<option value="concurrent">Concurrent</option>
|
||||
</options>
|
||||
<advanced>true</advanced>
|
||||
</parameter>
|
||||
|
||||
<parameter name="local_variable" type="text" required="false" groupName="system">
|
||||
@@ -47,24 +68,9 @@
|
||||
<option value="persistent">Persistent</option>
|
||||
<option value="global">Global</option>
|
||||
</options>
|
||||
<advanced>true</advanced>
|
||||
</parameter>
|
||||
|
||||
<parameter name="gem_home" type="text" required="false" groupName="environment">
|
||||
<label>GEM_HOME</label>
|
||||
<description>Location Ruby Gems will be installed and loaded, directory will be created if missing and gem installs
|
||||
are specified</description>
|
||||
<default></default>
|
||||
</parameter>
|
||||
|
||||
<parameter name="rubylib" type="text" required="false" groupName="environment">
|
||||
<label>RUBYLIB</label>
|
||||
<description>Search path for user libraries. Separate each path with a colon (semicolon in Windows).</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="gems" type="text" required="false" groupName="gems">
|
||||
<label>Ruby Gems</label>
|
||||
<description>Comma separated list of Ruby Gems to install.</description>
|
||||
</parameter>
|
||||
|
||||
</config-description>
|
||||
</config-description:config-descriptions>
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
|
||||
# service
|
||||
|
||||
service.automation.jrubyscripting.label = JRuby Scripting
|
||||
|
||||
# bundle config
|
||||
|
||||
automation.config.jruby.gem_home.label = GEM_HOME
|
||||
automation.config.jruby.gem_home.description = Location Ruby Gems will be installed and loaded, directory will be created if missing and gem installs are specified
|
||||
automation.config.jruby.gem_home.description = Location Ruby Gems will be installed and loaded, directory will be created if missing and gem installs are specified. Defaults to "OPENHAB_CONF/scripts/lib/ruby/gem_home" when not specified.
|
||||
automation.config.jruby.gems.label = Ruby Gems
|
||||
automation.config.jruby.gems.description = Comma separated list of Ruby Gems to install.
|
||||
automation.config.jruby.gems.description = A comma separated list of Ruby Gems to install.
|
||||
automation.config.jruby.group.environment.label = Ruby Environment
|
||||
automation.config.jruby.group.environment.description = This group defines Ruby's environment.
|
||||
automation.config.jruby.group.gems.label = Ruby Gems
|
||||
@@ -26,5 +19,11 @@ automation.config.jruby.local_variable.description = Defines how variables are s
|
||||
automation.config.jruby.local_variable.option.transient = Transient
|
||||
automation.config.jruby.local_variable.option.persistent = Persistent
|
||||
automation.config.jruby.local_variable.option.global = Global
|
||||
automation.config.jruby.require.label = Require Scripts
|
||||
automation.config.jruby.require.description = A comma separated list of script names to be required by the JRuby Scripting Engine before running user scripts.
|
||||
automation.config.jruby.rubylib.label = RUBYLIB
|
||||
automation.config.jruby.rubylib.description = Search path for user libraries. Separate each path with a colon (semicolon in Windows).
|
||||
automation.config.jruby.rubylib.description = Search path for user libraries. Separate each path with a colon (semicolon in Windows). Defaults to "OPENHAB_CONF/automation/lib/ruby" when not specified.
|
||||
|
||||
# service
|
||||
|
||||
service.automation.jrubyscripting.label = JRuby Scripting
|
||||
|
||||
Reference in New Issue
Block a user