cyphactor/octopusci — Issue #30: Figure out how to execute octopusci-skel cmd using sudo in devel
Author: cyphactor
Created: 2011-11-12 11:03:40+00:00
State: open
Labels: bug, urgent

It seems there is some sort of issue using sudo in devel to run the octopusci-skel command. It looks to be some how related to bundler. The output of the failure looks as follows:

```
[octopusci (master *=)]$ sudo ./bin/octopusci-skel
Password:
/Users/adeponte/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- trollop (LoadError)
from /Users/adeponte/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ./bin/octopusci-skel:8:in `

'
[octopusci (master *=)]$
```

For some reason it can't seem to find the gems that were installed by bundler when I use sudo for some reason.