capistrano-magento2 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c70875523d467d28282759e10da425d311ef296a
4
- data.tar.gz: a78aa7e50f18a2887b809c9690d60e144afa9bb8
3
+ metadata.gz: 548f3c638350c7873876db3869f74c22003c02f7
4
+ data.tar.gz: 69a9f0dbe7e4e119b081b5b60d016aef69cb5700
5
5
  SHA512:
6
- metadata.gz: 57f001fb10116d18324e63123f2cef319cc021bab5db665236cdad2f22d913ea421b6dfc4d4766646069add89855a6128fb7fcf531365076dba74916edd32732
7
- data.tar.gz: 3f00d2b698c2b1ebd3e46522a08fcc10fe9d3200d96fcf73b50c3494aeb10f137ca6640230a975899b98a396980bcd4f2c544314babb6be38ce0fa53a368252d
6
+ metadata.gz: a6b6854c65c9833dc2aef4c6bd4d2f9fdd98c8b0bf6857bd89d88812058e68a98e657d6b3e64dd2fc4a3148918df926867dacb36d2a465b36382893ac55fb79b
7
+ data.tar.gz: 1e10f1c370c2f6429dd973e1930740cdb11c2c228c050a613f3a6db2f7b2700bd7a61be5eae259338ac336f3fac96f0b74d4d704d9338bfea6beaec369602a6c
@@ -1,5 +1,10 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.5.2
4
+ ==========
5
+
6
+ * Added ability to configure permissions set on each deploy (issue #32). See README for details.
7
+
3
8
  0.5.1
4
9
  ==========
5
10
 
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
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.5.1'
12
+ VERSION = '0.5.2'
13
13
  end
14
14
  end
@@ -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, '-type d -exec chmod 770 {} +'
159
- execute :find, release_path, '-type f -exec chmod 660 {} +'
160
- execute :chmod, '-R g+s', release_path
161
- execute :chmod, '+x ./bin/magento'
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.1
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-09-21 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano