Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created March 8, 2010 04:38
Show Gist options
  • Save adamhjk/324872 to your computer and use it in GitHub Desktop.
Save adamhjk/324872 to your computer and use it in GitHub Desktop.
# cookbooks/thefader_wp/libraries/deploy_wp.rb
class Chef
class Provider
class Deploy
class Revision
class Wordpress < Chef::Provider::Deploy::Revision
def enforce_ownership
end
end
end
end
end
end
# cookbooks/thefader_wp/recipes/default.rb
deploy_revision "/u/apps/thefader_wp" do
repo "[email protected]:cornerstone/thefader_wp.git"
revision "HEAD" # "HEAD" or "TAG_for_1.0" or (subversion) "1234"
user "deploy"
shallow_clone true
action :force_deploy # or :rollback
restart_command "touch tmp/restart.txt"
symlink_before_migrate "public/wp-config.php" => "public/wp-config.php",
"public/.htaccess" => "public/.htaccess",
"public/wp-content/cache" => "public/wp-content/cache",
"public/wp-content/advanced-cache.php" => "public/wp-content/advanced-cache.php"
provider Chef::Provider::Deploy::Revision::Wordpress
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment