Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible selecting a non system Ruby from TideSDK when launching or bundling an application?

I'm testing the bundling of applications including Ruby scripts using TideSDK, via the TideSDK Developer app. I have several Rubies installed on my system, using RVM, and was wondering if there is any way of specifying which one should be used using a .rvmrc file or something similar that the TideSDK ruby module can understand.

Thanks.

like image 972
tnarik Avatar asked Jan 31 '26 09:01

tnarik


1 Answers

how are you planning to run your ruby scripts? via Ti.Process? Otherwise, the TideSDK ruby module is what it is - there's no different versions you can use with rvm (Afaik).

Update/Expanded: I should point out TideSDK bundles its own Ruby - its not using the system ruby. Otherwise, you can execute ruby scripts via Ti.Process (like any other script you would execute from the CLI). So, in your script, instead of #!/usr/bin/ruby you could do #!/usr/bin/env ruby. Of course, this wouldn't be very portable if you relying on rvm on target systems, but if you are doing a limited ditrib to known targets (ie: internally where you know everyone has a system setup with rvm) you could probably get something working.

like image 104
meeech Avatar answered Feb 03 '26 02:02

meeech