Skip to content

Commit 1075f37

Browse files
committed
Add a couple of example JRuby scripts
Unfortunately, they do not work right now as written. But for the moment, fixing them will have to wait. (I'd rather have them committed and available than forgotten.)
1 parent 01ef836 commit 1075f37

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @String name
2+
# @OUTPUT String greeting
3+
4+
# A JRuby script with parameters.
5+
# It is the duty of the scripting framework to harvest
6+
# the 'name' parameter from the user, and then display
7+
# the 'greeting' output parameter, based on its type.
8+
9+
greeting = "Hello, " + name + "!"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# A very simple JRuby script.
2+
# It is the duty of the scripting framework to display
3+
# the script's return value, based on its type.
4+
5+
"Hello world!"

0 commit comments

Comments
 (0)