-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
Describe the bug
Hi,
I would like to initialize Environment Modules from a ruby script.
I have tried to import the file "/usr/share/modules/init/ruby.rb".
After that, I can't call the module function because it is a reserved keyword in ruby.
To Reproduce
Steps to reproduce the behavior:
1 - Create a test.rb script with the following content
# Load the Environment Modules system into Ruby
require '/usr/share/modules/init/ruby.rb'
# Example usage: Load a module
module('load python')
2 - Execute the script
$ruby test.rb
test.rb:5: syntax error, unexpected '\n', expecting '.' or &. or :: or '['
module('load python')
Metadata
Metadata
Assignees
Labels
No labels