Skip to content

Instantly share code, notes, and snippets.

@rickhull
Created November 6, 2017 19:59
Show Gist options
  • Select an option

  • Save rickhull/e48cc2a00ccb42fda1b996444f393e9e to your computer and use it in GitHub Desktop.

Select an option

Save rickhull/e48cc2a00ccb42fda1b996444f393e9e to your computer and use it in GitHub Desktop.
vagrant@contrib-jessie:~$ cd btest
vagrant@contrib-jessie:~/btest$ mkdir -p foo/bar/baz
vagrant@contrib-jessie:~/btest$ cd foo
vagrant@contrib-jessie:~/btest/foo$ echo "puts :hello_world" > test.rb
vagrant@contrib-jessie:~/btest/foo$ ruby test.rb
hello_world
vagrant@contrib-jessie:~/btest/foo$ bundle exec ruby test.rb
Could not locate Gemfile or .bundle/ directory
vagrant@contrib-jessie:~/btest/foo$ touch Gemfile
vagrant@contrib-jessie:~/btest/foo$ bundle exec ruby test.rb
hello_world
vagrant@contrib-jessie:~/btest/foo$ rm Gemfile
vagrant@contrib-jessie:~/btest/foo$ touch ../Gemfile
vagrant@contrib-jessie:~/btest/foo$ bundle exec ruby test.rb
hello_world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment