Skip to content

Instantly share code, notes, and snippets.

@jeevandongre
Created September 25, 2015 10:49
Show Gist options
  • Save jeevandongre/b4eb6677308ddbdb0bf3 to your computer and use it in GitHub Desktop.
Save jeevandongre/b4eb6677308ddbdb0bf3 to your computer and use it in GitHub Desktop.
Deploy resource chef
deploy_revision("new-spree-st") do
action [:deploy]
updated true
updated_by_last_action true
retries 0
default_guard_interpreter :default
deploy_to "/home/vagrant/apps/new-spree-st"
environment {"RAILS_ENV"=>"production"}
repository_cache "cached-copy"
symlink_before_migrate {"database.yml"=>"config/database.yml"}
revision "master"
rollback_on_error true
remote "origin"
scm_provider Chef::Provider::Git
keep_releases 5
enable_checkout true
checkout_branch "deploy"
declared_type :deploy_revision
cookbook_name :"new-spree-st"
repo "[email protected]:styletag/new_spree_st.git"
user "vagrant"
group "vagrant"
migration_command "bundle exec rake db:migrate"
restart_command #<Proc:0x00000007372380@/tmp/vagrant-chef-4/chef-solo-1/cookbooks/application/providers/default.rb:148>
before_migrate #<Proc:0x00000007370c60@/tmp/vagrant-chef-4/chef-solo-1/cookbooks/application/providers/default.rb:168>
before_symlink #<Proc:0x00000007370aa8@/tmp/vagrant-chef-4/chef-solo-1/cookbooks/application/providers/default.rb:171>
before_restart #<Proc:0x000000073708f0@/tmp/vagrant-chef-4/chef-solo-1/cookbooks/application/providers/default.rb:174>
after_restart #<Proc:0x00000007370738@/tmp/vagrant-chef-4/chef-solo-1/cookbooks/application/providers/default.rb:177>
shared_path "/home/vagrant/apps/new-spree-st/shared"
: destination "/home/vagrant/apps/new-spree-st/shared/cached-copy"
current_path "/home/vagrant/apps/new-spree-st/current"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment