You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
The text was updated successfully, but these errors were encountered:
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
2 - Execute the script
The text was updated successfully, but these errors were encountered: