This addresses a problem that goes like this:
You want to create a launch file for launchd (launchctl) to run a ruby file periodically or as a daemon.
Various solutions to this problem include creating an RVM alias for the particular ruby version you want to use. Here I present a working version without aliases, just uses the default RVM Ruby. Please not that, for me, the default rvm ruby is 2.2.5.
Various solutions to this problem include creating an RVM alias for the particular ruby version you want to use. Here I present a working version without aliases, just uses the default RVM Ruby. Please not that, for me, the default rvm ruby is 2.2.5.
The rvm environment does get initialized. You get lots of gem issues.
rvm-shebang-ruby
Simply use:
Ruby and RVM environments are now correctly updated.
Yeah and you don't need to create any aliases. It will work perfectly fine.