capdrupal 0.9.4 → 0.9.5

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,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6f24435da730a40e47bc8b1e1b93b35eb0be3e92
4
+ data.tar.gz: 9df15ddc6792448c0120434077410aaa283f47cf
5
+ SHA512:
6
+ metadata.gz: e4de35cfde29c9cc59c769c344616d03ddd9dc1e99dc6c8cf9aafbb4c2fe0099163b25d5aa16881b0c238082be76739a09d15c670d0c83b01b4771408bfd3ddd
7
+ data.tar.gz: 39045e654cc5191a01e5fbd46d624ef93819f58e44de8f7acef0fd1ec261fd0c930711a61093a888cdaf73267935248f785194f78ff43ef4d38c71f2e630450a
data/README.markdown CHANGED
@@ -33,7 +33,7 @@ Capistrano create two files `capfile` and `config/deploy.rb`. Open `capfile` and
33
33
  require 'capdrupal'
34
34
  load 'config/deploy'
35
35
 
36
- Then, go to `config/deploy.rb` to set the parameters of your project. First you have to define the general informations (generaly use by multiple server) and the different stage you have.
36
+ Then, go to `config/deploy.rb` to set the parameters of your project. First you have to define the general informations about the user, server and the app himself.
37
37
 
38
38
  # USER
39
39
  set :user, "name"
@@ -42,7 +42,10 @@ Then, go to `config/deploy.rb` to set the parameters of your project. First you
42
42
 
43
43
  # APP
44
44
  set :application, "appName"
45
- set :stages, %w(stage1 stage2)
45
+
46
+ # The domain and the path to your app directory
47
+ set :domain, "staging.domain.com"
48
+ set :deploy_to, "/home/path/to/my/app/"
46
49
 
47
50
  The specific Drupal informations and if you have already or not [Drush](https://drupal.org/project/drush) installed on your server (if your not sure, keep it TRUE).
48
51
 
@@ -56,6 +59,7 @@ Then, all the informations related to your Git repository
56
59
 
57
60
  set :scm, "git"
58
61
  set :repository, "git@github.com:user/repo-name.git"
62
+ set :branch, "dev"
59
63
 
60
64
  Finally, set the other Capistrano related options, the number of realeases you want and the cleanup at the end of the deployment.
61
65
 
@@ -68,28 +72,14 @@ Finally, set the other Capistrano related options, the number of realeases you w
68
72
  set :keep_releases, 5
69
73
  after "deploy:update", "deploy:cleanup"
70
74
 
71
- Awesome, your configuration file is almost complete ! From now and whenever you want to add a new stage, create an new file in `config/deploy/` with in :
75
+ Awesome, your configuration file is complete ! You can also use Capdrupal for [multistage](https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension).
72
76
 
73
- # Stage name (same as your filename, for example stage1.rb)
74
- set :stages, "stage1"
75
-
76
- # The Git branch you want to use
77
- set :branch, "dev"
78
-
79
- # The domain and the path to your app directory
80
- set :domain, "staging.domain.com"
81
- set :deploy_to, "/home/path/to/my/app/"
82
-
83
- # And the user if it's not the same as define in deploy.rb
84
- set :user, "staging"
85
- set :group, "staging"
86
- set :runner_group, "staging"
87
77
 
88
78
  ## Usage
89
79
 
90
80
  So, after configuration come action ! The first time, you have to run this command with the choosing stage.
91
81
 
92
- $ cap stage1 deploy:setup
82
+ $ cap deploy:setup
93
83
 
94
84
  In fact, Capistrano create directories and symlink to the targeted server. The `shared` directory contains all shared files of your app who don't need to be change. `Releases` contains the different releases of your app with a number define in `deploy.rb` and finally `current` is the symlink who target the right release.
95
85
 
@@ -103,7 +93,7 @@ In fact, Capistrano create directories and symlink to the targeted server. The `
103
93
 
104
94
  Now, every time you want to deploy you app !
105
95
 
106
- $ cap stage1 deploy
96
+ $ cap deploy
107
97
 
108
98
  And if some troubles occur, juste launch the rollback command to return to the previous release.
109
99
 
@@ -115,6 +105,7 @@ You should then be able to proceed as you would usually, you may want to familia
115
105
  $ cap -T
116
106
 
117
107
  This show a list of all avaible commands:
108
+
118
109
 
119
110
  cap deploy # Deploys your project.
120
111
  cap deploy:check # Test deployment dependencies.
@@ -152,4 +143,4 @@ This show a list of all avaible commands:
152
143
 
153
144
  Inspired by [capistrano-drupal](https://github.com/previousnext/capistrano-drupal).
154
145
 
155
- Made by [Antistatique](http://www.antistatique.net) who's always looking for new talented developpers ! Just mail us on [hello@antistatique.net](mailto:hello@antistatique.net).
146
+ Made by [Antistatique](http://www.antistatique.net) who's always looking for new talented developpers ! Just mail us on [job@antistatique.net](mailto:hello@antistatique.net).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
data/capdrupal.gemspec CHANGED
@@ -2,11 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'capdrupal'
5
- s.version = '0.9.4'
5
+ s.version = '0.9.5'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.description = <<-DESC
8
8
  A set of tasks for deploying Drupal projects with Capistrano and the help of Drush.
9
- Based on the work at https://github.com/previousnext/capistrano-drupal}
10
9
  DESC
11
10
  s.summary = 'A set of tasks for deploying Drupal projects with Capistrano'
12
11
 
data/lib/capdrupal.rb CHANGED
@@ -24,6 +24,10 @@ Capistrano::Configuration.instance(:must_exist).load do
24
24
  _cset(:app_path) { "drupal" }
25
25
  _cset :shared_children, false
26
26
 
27
+ if download_drush
28
+ depend :remote, :command, "curl"
29
+ end
30
+
27
31
  after "deploy:finalize_update" do
28
32
 
29
33
  if download_drush
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capdrupal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
5
- prerelease:
4
+ version: 0.9.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Simon Perdrisat
@@ -12,14 +11,13 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2013-06-17 00:00:00.000000000 Z
14
+ date: 2014-04-07 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: capistrano
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - '>='
23
21
  - !ruby/object:Gem::Version
24
22
  version: 2.13.5
25
23
  - - <=
@@ -28,9 +26,8 @@ dependencies:
28
26
  type: :runtime
29
27
  prerelease: false
30
28
  version_requirements: !ruby/object:Gem::Requirement
31
- none: false
32
29
  requirements:
33
- - - ! '>='
30
+ - - '>='
34
31
  - !ruby/object:Gem::Version
35
32
  version: 2.13.5
36
33
  - - <=
@@ -39,7 +36,6 @@ dependencies:
39
36
  - !ruby/object:Gem::Dependency
40
37
  name: railsless-deploy
41
38
  requirement: !ruby/object:Gem::Requirement
42
- none: false
43
39
  requirements:
44
40
  - - ~>
45
41
  - !ruby/object:Gem::Version
@@ -47,13 +43,12 @@ dependencies:
47
43
  type: :runtime
48
44
  prerelease: false
49
45
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
46
  requirements:
52
47
  - - ~>
53
48
  - !ruby/object:Gem::Version
54
49
  version: 1.1.2
55
- description: ! " A set of tasks for deploying Drupal projects with Capistrano and
56
- the help of Drush.\n Based on the work at https://github.com/previousnext/capistrano-drupal}\n"
50
+ description: |2
51
+ A set of tasks for deploying Drupal projects with Capistrano and the help of Drush.
57
52
  email: gilles.doge@gmail.com
58
53
  executables: []
59
54
  extensions: []
@@ -66,26 +61,25 @@ files:
66
61
  - lib/capdrupal.rb
67
62
  homepage: http://github.com/antistatique/capdrupal/
68
63
  licenses: []
64
+ metadata: {}
69
65
  post_install_message:
70
66
  rdoc_options: []
71
67
  require_paths:
72
68
  - lib
73
69
  required_ruby_version: !ruby/object:Gem::Requirement
74
- none: false
75
70
  requirements:
76
- - - ! '>='
71
+ - - '>='
77
72
  - !ruby/object:Gem::Version
78
73
  version: '0'
79
74
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
75
  requirements:
82
- - - ! '>='
76
+ - - '>='
83
77
  - !ruby/object:Gem::Version
84
78
  version: '0'
85
79
  requirements: []
86
80
  rubyforge_project:
87
- rubygems_version: 1.8.23
81
+ rubygems_version: 2.0.3
88
82
  signing_key:
89
- specification_version: 3
83
+ specification_version: 4
90
84
  summary: A set of tasks for deploying Drupal projects with Capistrano
91
85
  test_files: []