carlhuda/bundler — Issue #1681: undefined local variable or method 'ls'
Author: brdoco
Created: 2012-02-26 22:32:30+00:00
State: open

Got the following error trying to run bundle update.

OS X 10.7.3
Ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
RVM 1.6.32

```➜ myProject git:(master) ✗ bundle update
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!

/Users/myusername/IdeaProjects/myProject/Gemfile:21:in `evaluate': undefined local variable or method `ls' for # (NameError)
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/dsl.rb:7:in `instance_eval'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/dsl.rb:7:in `evaluate'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/definition.rb:17:in `build'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler.rb:144:in `definition'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in `install'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/bin/bundle:13:in `'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `load'
from /Users/myusername/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `

'```