Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
594 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: deploy
  3. # key: deploy
  4. # --
  5. deploy "/my/deploy/dir" do
  6. repo "git@github.com/whoami/provideroject"
  7. revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234"
  8. user "deploy_ninja"
  9. enable_submodules true
  10. migrate true
  11. migration_command "rake db:migrate"
  12. environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo"
  13. shallow_clone true
  14. action :deploy # or :rollback
  15. restart_command "touch tmp/restart.txt"
  16. git_ssh_wrapper "wrap-ssh4git.sh"
  17. scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion
  18. end