forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openhab#9 from jimtng/jruby-configurations
[jrubyscripting] Add ConfigurableService
- Loading branch information
Showing
7 changed files
with
92 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
70 changes: 70 additions & 0 deletions
70
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/config/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<config-description:config-descriptions | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0" | ||
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 | ||
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> | ||
|
||
<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>Gems</label> | ||
<description>This group defines the list of GEMS to install.</description> | ||
<advanced>false</advanced> | ||
</parameter-group> | ||
|
||
<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 | ||
https://github.com/jruby/jruby/wiki/RedBridge#Context_Instance_Type for options and details.</description> | ||
<default>singlethread</default> | ||
<options> | ||
<option value="singleton">Singleton</option> | ||
<option value="threadsafe">ThreadSafe</option> | ||
<option value="singlethread">SingleThread</option> | ||
<option value="concurrent">Concurrent</option> | ||
</options> | ||
</parameter> | ||
|
||
<parameter name="local_variable" type="text" required="false" groupName="system"> | ||
<label>Local Variable Behavior</label> | ||
<description>Defines how variables are shared between Ruby and Java. See | ||
https://github.com/jruby/jruby/wiki/RedBridge#local-variable-behavior-options for options and details.</description> | ||
<default>transient</default> | ||
<options> | ||
<option value="transient">Transient</option> | ||
<option value="persistent">Persistent</option> | ||
<option value="global">Global</option> | ||
</options> | ||
</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>Gems</label> | ||
<description>Comma separated list of Ruby Gems to install.</description> | ||
</parameter> | ||
|
||
</config-description> | ||
</config-description:config-descriptions> |