```ruby
# Install Ruby via rvm
# Include here so that we can set Ruby version in this recipe
include_recipe "rvm::user"
include_recipe "rvm::vagrant"

# Install required packages
%w{curl}.each do |pkg|
  package pkg do
    action :install
  end
end
gem_package "bundler" do
  action :install
end

# Install required gems via bundler
# store them in vendor/bundle
script "bundle" do
  interpreter "bash"
  cwd "/vagrant"
  code "bundle install --path vendor/bundle"
end

# Package required gems in vendor folder
script "bundle" do
  interpreter "bash"
  cwd "/vagrant"
  code "bundle package --all"
end```

Use PPA to install Ruby 2.0
user
```ruby
# Add ppa with newer Ruby version
apt_repository "brightbox-ruby-ng" do
  action       :add
  uri          "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu"
  distribution "precise"
  components   ["main"]
  keyserver    "keyserver.ubuntu.com"
  key          "C3173AA6"
end

# Install Ruby and other required packages
%w{ruby2.0 curl}.each do |pkg|
  package pkg do
    action :install
  end
end
gem_package "bundler" do
  gem_binary "/usr/bin/gem"
end

# Install required gems via bundler
# store them in vendor/bundle
script "bundle" do
  interpreter "bash"
  cwd "/vagrant"
  code "bundle install --path vendor/bundle"
end

# Package required gems in vendor folder
script "bundle" do
  interpreter "bash"
  cwd "/vagrant"
  code "bundle package --all"
end```
assistant