Patch: enabling bundler support in the sinatra aps
|Assignee:||Daniel Molina||% Done:|
|Target version:||Release 3.0|
I have patched occi-server.rb and econe-server.rb to use bundler if exists, otherwise fall-through to normal rubygem resolution.
There are a few caveats when using bundler, but I feel are reasonable to those that wish to use it.
- The user provides a Gemfile in $ONE_LOCATION
- The occi-server and econe-server commands need to be executed while in the $ONE_LOCATION directory (so bundler can pickup the .bundle/ directory)
I also added the knowledge of a ONE_ENV environment variable. This will allow users of bundler to require different gems under different opennebula
environments. Such as a production or development install.
$ cd $ONE_LOCATION
$ cat Gemfile
Fetching source index for http://rubygems.org/
Installing daemons (1.1.0)
Installing eventmachine (0.12.10) with native extensions
Installing rack (1.2.1)
Installing tilt (1.1)
Installing sinatra (1.1.0)
Installing thin (1.2.7) with native extensions
Using bundler (1.0.7)
$ occi-server start