Skip to main content
Skip table of contents

Run_Ruby_Script

What is the Run_Ruby_Script Job?

The Run_Ruby_Script job runs Rails command scripts in the form of .txt files.

How to Run a Ruby Script

  1. Click on the Run_Ruby_Script in the Support folder.

  2. Click on Build with Parameters on the left sidebar.

  3. Choose account from the dropdown menu.

  4. Choose the app_server.

    1. Found using Get Weinfo

    2. Example: gme-project2 for GME Project2

    3. Attach Ruby script as a .txt file. Always attach Ruby script as a .txt file

  5. Populate the jira_ticket field and click Build.

  6. Click Console Output on the left side of the screen.

    1. Scroll down to the bottom of the page to when the job is finished

📘 If there are multiple ways to do this setup list each one out

Running Ruby scripts can also be completed through mRemoteNg.

  1. Launch the mRemoteNg application.

  2. Under the Connect field, type in the application server.

  3. Select SSH2 in the field to the right of Connect.

  4. Type in wti as the login and press enter.

  5. Type in the password and press enter.

  6. Type in railsc.

  7. Wait a few minutes for the application to say irb (main).

  8. The text from the Ruby script can be copied and pasted into mRemoteNg.

  9. NOTE: right-clicking into mRemoteNG automatically pastes and hits enter to run the command.

  10. Press enter to run.

  11. Once complete, another line will appear to know you are ready to run the next command or can to quit to exit.

Other items worth noting that would impact the process.

Changes coming soon

Known issues with the process

Related Documentation

Frequently Asked Client Questions

Links provided are from W Energy Software Support Confluence Space @a user

https://wenergysoftware.atlassian.net/l/cp/YnLQS0dD

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.