Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is Chef cookbook and it provides rvm_deploy resource for deploying applications with RVM easily.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 files
Octocat-spinner-32 libraries
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 README.md
Octocat-spinner-32 metadata.rb
README.md

Description

This cookbook provides rvm_deploy resource, which can be used just like deploy or deploy_revision resources, but it provides rvm integration.

Requirements

Attributes

Usage

You can use any attibutes you can use in Deploy resource, with some additions:

  • ruby_string, String, default: nil, example: "ruby-1.9.3-p194@gemset", gemset is optional
  • precompile_assets, Boolean, default: true
rvm_deploy "/my/deploy/dir" do
  ruby_string "ruby-1.9.3-p194@project"
  precompile_assets true
  repo "git@github.com/whoami/project"
  revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
  user "deploy_ninja"
  enable_submodules true
  migrate true
  migration_command "rake db:migrate"
  environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
  shallow_clone true
  action :deploy # or :rollback
  restart_command "touch tmp/restart.txt"
  git_ssh_wrapper "wrap-ssh4git.sh"
  scm_provider Chef::Provider::Git # is the default, for svn: Chef::Provider::Subversion
  svn_username "whoami"
  svn_password "supersecret"
end
Something went wrong with that request. Please try again.