Skip to content

Commit

Permalink
Initial working version
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpepper committed Jun 17, 2010
1 parent dd3efcc commit f4bd576
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pkg
DS_Store
40 changes: 40 additions & 0 deletions capistrano-drupal.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{capistrano-drupal}
s.version = "0.0.9"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kim Pepper"]
s.date = %q{2010-06-17}
s.description = %q{A set of tasks for deploying Drupal projects with Capistrano. Includes tasks for configuring apache and mysql}
s.email = %q{[email protected]}
s.extra_rdoc_files = [
"README.markdown"
]
s.files = [
"README.markdown",
"Rakefile",
"VERSION",
"lib/capistrano-drupal.rb"
]
s.homepage = %q{http://github.com/previousnext/capistrano-drupal/}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{A set of tasks for deploying Drupal projects with Capistrano}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
end

21 changes: 10 additions & 11 deletions lib/capistrano-drupal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,25 @@
set :scm, :git
set :deploy_via, :remote_cache
_cset :branch, "master"
_cset :git_enable_submodules, true
_cset :runner_group, "www-data"

_cset(:deploy_to) { "/var/www/#{application}" }
_cset :shared_children, ['files']
set :git_enable_submodules, true
set :runner_group, "www-data"
set(:deploy_to) { "/var/www/#{application}" }
set :shared_children, ['files']

_cset(:db_root_password) {
set(:db_root_password) {
Capistrano::CLI.ui.ask("MySQL root password:")
}

_cset(:db_username) {
set(:db_username) {
Capistrano::CLI.ui.ask("MySQL username:")
}

_cset(:db_password) {
set(:db_password) {
Capistrano::CLI.ui.ask("MySQL password:")
}

after :symlink, "drupal:symlink_shared"
after "deploy:setup", "deploy:set_permissions"

after "deploy:symlink", "drupal:symlink_shared"
after "deploy:setup", "drush:createdb"
after "deploy:setup", "drush:init_settings"
before "drush:updatedb", "drush:backupdb"
Expand Down

0 comments on commit f4bd576

Please sign in to comment.