drupal-cap 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2JiNzRkNzg5NmE4NDJkZDZiODE3ODA0MGQ1MTQ5ZmJkMDcwYWEzYQ==
5
+ data.tar.gz: !binary |-
6
+ YzM5M2U2NzE1MTVmNDI2MzU1NThlMjk3MDdiMTM0ZTA4YTIyYmU3NA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDMxZWJkZjk1ZmEzNTUzMTZiMGY2NmVlZTFlOThlNDQyNWIwN2IyNmFlNmYx
10
+ NTZhMzIzMWE3OGZlMzAzZDNkMmRlZTFjMTY3MGM0YjVjNzE2MDQzOGQwODIy
11
+ NmNmMDMxNDkwN2NlN2MzZGI1YWQ4Yjc0MGQ2Y2E3NjUwZmNhMzE=
12
+ data.tar.gz: !binary |-
13
+ ZTFjYzRlOTE4NzIyZmE0ZjQxMDI2MjBkZGRhMGZiM2QyNzEzMGI0NTgzNTc2
14
+ NzM1NDgyNGUxNmJmZjVmMTA0OTcwN2FiYWIxNDVmMjM4YjRiOTM2MmZhMjdm
15
+ Y2IzNzllODkxZTdmNmNmYzY1MDI5NjEyMDdmYjJiMjBmOTVhNDQ=
data/README.markdown CHANGED
@@ -15,7 +15,7 @@ Open your application's `Capfile` and make it begin like this:
15
15
  require 'rubygems'
16
16
  require 'railsless-deploy'
17
17
  require 'drupal-cap'
18
- load 'config/deploy'
18
+ load 'sites/default/deploy'
19
19
 
20
20
  You should then be able to proceed as you would usually, you may want to familiarise yourself with the truncated list of tasks, you can get a full list with:
21
21
 
@@ -31,3 +31,43 @@ The deployment script expects that sites/default/files and sites/default/setting
31
31
  - Use drush aliases
32
32
  - Support install profiles
33
33
  - Support composer
34
+
35
+ An example sites/default/deploy.rb
36
+
37
+ set :application, "mydrupalproject.hu"
38
+ set :repository, "ssh://git@git.mygitserver.hu:2222/mydrupalproject"
39
+ set :branch, "master"
40
+ set :scm, :git
41
+ set :deploy_via, :remote_cache
42
+
43
+ set :deploy_to, "/var/www/mydrupalproject"
44
+
45
+ # X, Y, Z have login permissions for this user (public key)
46
+ set :user, "serveruser"
47
+ set :port, 2222
48
+
49
+ # set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
50
+ # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
51
+
52
+ role :web, "mydrupalproject.hu" # Your HTTP server, Apache/etc
53
+ role :app, "mydrupalproject.hu" # This may be the same as your `Web` server
54
+
55
+ set :keep_releases, 5
56
+
57
+ set :use_sudo, false
58
+ set :copy_exclude, [".git"]
59
+
60
+ # required for cPanel servers (removing writable by group permission)
61
+ after 'deploy:create_symlink', 'cpanel:fixchmod'
62
+
63
+ desc <<-DESC
64
+ Fix file permissions for cPanel
65
+ DESC
66
+ namespace :cpanel do
67
+ task :fixchmod, :roles => [:web, :app] do
68
+ run "chmod g-w #{current_path}/index.php"
69
+ run "chmod g-w #{current_path}/cron.php"
70
+ run "chmod g-w #{latest_release}"
71
+ end
72
+
73
+ end
data/drupal-cap.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'drupal-cap'
3
- s.version = '0.1.11'
3
+ s.version = '0.1.12'
4
4
  s.summary = "Capistrano tasks for Drupal"
5
5
  s.description = "Capistrano task collection for Drupal development"
6
6
  s.authors = ["Sandor Czettner"]
@@ -15,5 +15,5 @@ Gem::Specification.new do |s|
15
15
  "drupal-cap.gemspec",
16
16
  "lib/drupal-cap.rb"
17
17
  ]
18
- s.homepage = 'https://github.com/czettnersandor/capistrano-drupal'
18
+ s.homepage = 'https://github.com/czettnersandor/cap-drupal'
19
19
  end
data/lib/drupal-cap.rb CHANGED
@@ -39,8 +39,12 @@ Capistrano::Configuration.instance(:must_exist).load do
39
39
  task :setup, :except => { :no_release => true } do
40
40
  dirs = [deploy_to, releases_path, shared_path].join(' ')
41
41
  run "#{try_sudo} mkdir -p #{releases_path} #{shared_path}"
42
+ shared_children.each do |asset|
43
+ run "#{try_sudo} mkdir -p #{shared_path}/#{asset}"
44
+ end
42
45
  run "#{try_sudo} chown -R #{user}:#{runner_group} #{deploy_to}"
43
46
  sub_dirs = shared_children.map { |d| File.join(shared_path, d) }
47
+ run "#{try_sudo} mkdir #{sub_dirs.join(' ')}"
44
48
  run "#{try_sudo} chmod 2775 #{sub_dirs.join(' ')}"
45
49
  end
46
50
  end
@@ -88,11 +92,9 @@ Capistrano::Configuration.instance(:must_exist).load do
88
92
  task :copy_local do
89
93
  sql = %x[/usr/bin/drush sql-dump]; success = $?.success?
90
94
  if success
91
- drush.site_offline
92
95
  put sql, "#{latest_release}/sqldump-capistrano-drupal.sql"
93
96
  run "`#{drush_cmd} -r #{latest_release} sql-connect` < #{latest_release}/sqldump-capistrano-drupal.sql"
94
97
  run "rm #{latest_release}/sqldump-capistrano-drupal.sql"
95
- drush.site_online
96
98
  end
97
99
 
98
100
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupal-cap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
5
- prerelease:
4
+ version: 0.1.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sandor Czettner
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-05 00:00:00.000000000 Z
11
+ date: 2014-01-08 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Capistrano task collection for Drupal development
15
14
  email: sandor@czettner.hu
@@ -23,28 +22,27 @@ files:
23
22
  - VERSION
24
23
  - drupal-cap.gemspec
25
24
  - lib/drupal-cap.rb
26
- homepage: https://github.com/czettnersandor/capistrano-drupal
25
+ homepage: https://github.com/czettnersandor/cap-drupal
27
26
  licenses: []
27
+ metadata: {}
28
28
  post_install_message:
29
29
  rdoc_options: []
30
30
  require_paths:
31
31
  - lib
32
32
  required_ruby_version: !ruby/object:Gem::Requirement
33
- none: false
34
33
  requirements:
35
34
  - - ! '>='
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
37
  required_rubygems_version: !ruby/object:Gem::Requirement
39
- none: false
40
38
  requirements:
41
39
  - - ! '>='
42
40
  - !ruby/object:Gem::Version
43
41
  version: '0'
44
42
  requirements: []
45
43
  rubyforge_project:
46
- rubygems_version: 1.8.23
44
+ rubygems_version: 2.2.1
47
45
  signing_key:
48
- specification_version: 3
46
+ specification_version: 4
49
47
  summary: Capistrano tasks for Drupal
50
48
  test_files: []