capistrano-magento2 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -0
- data/lib/capistrano/magento2/version.rb +1 -1
- data/lib/capistrano/tasks/magento.rake +9 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 548f3c638350c7873876db3869f74c22003c02f7
|
4
|
+
data.tar.gz: 69a9f0dbe7e4e119b081b5b60d016aef69cb5700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b6854c65c9833dc2aef4c6bd4d2f9fdd98c8b0bf6857bd89d88812058e68a98e657d6b3e64dd2fc4a3148918df926867dacb36d2a465b36382893ac55fb79b
|
7
|
+
data.tar.gz: 1e10f1c370c2f6429dd973e1930740cdb11c2c228c050a613f3a6db2f7b2700bd7a61be5eae259338ac336f3fac96f0b74d4d704d9338bfea6beaec369602a6c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -117,6 +117,9 @@ Before you can use Capistrano to deploy, you must configure the `config/deploy.r
|
|
117
117
|
| `:magento_deploy_production` | `true` | Enables production specific DI compilation and static content generation
|
118
118
|
| `:magento_deploy_maintenance` | `true` | Enables use of maintenance mode while magento:setup:upgrade runs
|
119
119
|
| `:magento_deploy_confirm` | `[]` | Used to require confirmation of deployment to a set of capistrano stages
|
120
|
+
| `:magento_deploy_chmod_d` | `2770` | Default permissions applied to all directories in the release path
|
121
|
+
| `:magento_deploy_chmod_f` | `0660` | Default permissions applied to all non-executable files in the release path
|
122
|
+
| `:magento_deploy_chmod_x` | `['bin/magento']` | Default list of files in release path to set executable bit on
|
120
123
|
|
121
124
|
#### Example Usage
|
122
125
|
|
@@ -155,10 +155,12 @@ namespace :magento do
|
|
155
155
|
task :permissions do
|
156
156
|
on release_roles :all do
|
157
157
|
within release_path do
|
158
|
-
execute :find, release_path,
|
159
|
-
execute :find, release_path,
|
160
|
-
|
161
|
-
|
158
|
+
execute :find, release_path, "-type d -exec chmod #{fetch(:magento_deploy_chmod_d).to_i} {} +"
|
159
|
+
execute :find, release_path, "-type f -exec chmod #{fetch(:magento_deploy_chmod_f).to_i} {} +"
|
160
|
+
|
161
|
+
fetch(:magento_deploy_chmod_x).each() do |file|
|
162
|
+
execute :chmod, "+x #{release_path}/#{file}"
|
163
|
+
end
|
162
164
|
end
|
163
165
|
end
|
164
166
|
Rake::Task['magento:setup:permissions'].reenable ## make task perpetually callable
|
@@ -356,5 +358,8 @@ namespace :load do
|
|
356
358
|
|
357
359
|
set :magento_deploy_languages, fetch(:magento_deploy_languages, ['en_US'])
|
358
360
|
set :magento_deploy_themes, fetch(:magento_deploy_themes, [])
|
361
|
+
set :magento_deploy_chmod_d, fetch(:magento_deploy_chmod_d, '2770')
|
362
|
+
set :magento_deploy_chmod_f, fetch(:magento_deploy_chmod_f, '0660')
|
363
|
+
set :magento_deploy_chmod_x, fetch(:magento_deploy_chmod_x, ['bin/magento'])
|
359
364
|
end
|
360
365
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-magento2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Alger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|