capistrano-laravel 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a516f259143f927bbc800c8f33c0d98413bc47b
4
- data.tar.gz: 9b9e0389129ec4d69f4b44ddfdedbdec55e48e52
3
+ metadata.gz: 075c930621f1c13f7a7f91370770e06fa816d62b
4
+ data.tar.gz: 903ccca3dd185fc9e54ad4e2c3aae24f309cf424
5
5
  SHA512:
6
- metadata.gz: 4bc6bd3dcb9e34426ea070b89fd5317f06618139daee311e98e383749b1d01d39546bf73369e0120c0402ba1fd115a3f9550f6be6ee6cc1060374b3f185f19d6
7
- data.tar.gz: a448b3db0db1a49fdcd178411a46d631d4fbc8c6c5d576cfaff2747ec75c4675f646397c739202e38ba2b3f3ccfdbcf115d36001f516e19d9fdf3faccee1365f
6
+ metadata.gz: 3c3088262b6dc67f04433b714841c97282f5f62843f3c22838609fea525f1bc761eda4e3cb69aa6dae02558ec16e671a3e2388607d8d1c2f7f6fabd716a46334
7
+ data.tar.gz: fa6a06117a5ef5740572e2d7a7fc9a7a091eea429e610338f5196a8455b9b51848d6e4e0b1c338fbbd9135e7a822b769a4ce5da156efe67c15a1c11b7f62e7c7
data/README.md CHANGED
@@ -133,8 +133,8 @@ The following tasks are added to your deploy automagically when adding capistran
133
133
  before 'deploy:starting', 'laravel:resolve_linked_dirs'
134
134
  before 'deploy:starting', 'laravel:resolve_acl_paths'
135
135
  after 'deploy:starting', 'laravel:ensure_linked_dirs_exist'
136
- after 'deploy:starting', 'laravel:ensure_acl_paths_exist'
137
- after 'deploy:updating', 'deploy:set_permissions:acl'
136
+ before 'deploy:updating', 'laravel:ensure_acl_paths_exist'
137
+ before 'deploy:updated', 'deploy:set_permissions:acl'
138
138
  before 'composer:run', 'laravel:upload_dotenv_file'
139
139
  after 'composer:run', 'laravel:storage_link'
140
140
  after 'composer:run', 'laravel:optimize'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Laravel
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -98,6 +98,7 @@ namespace :laravel do
98
98
 
99
99
  desc 'Determine which paths, if any, to have ACL permissions set.'
100
100
  task :resolve_acl_paths do
101
+ next unless fetch(:laravel_set_acl_paths)
101
102
  laravel_version = fetch(:laravel_version)
102
103
 
103
104
  # Use Laravel 5 ACL paths by default
@@ -125,7 +126,7 @@ namespace :laravel do
125
126
 
126
127
  desc 'Ensure that ACL paths exist.'
127
128
  task :ensure_acl_paths_exist do
128
- next unless fetch(:laravel_ensure_acl_paths_exist)
129
+ next unless fetch(:laravel_set_acl_paths) && fetch(:laravel_ensure_acl_paths_exist)
129
130
 
130
131
  on roles fetch(:laravel_roles) do
131
132
  fetch(:file_permissions_paths).each do |path|
@@ -188,7 +189,7 @@ namespace :laravel do
188
189
 
189
190
  desc 'Create a symbolic link from "public/storage" to "storage/app/public."'
190
191
  task :storage_link do
191
- next if fetch(:laravel_version) <= 5.3
192
+ next if fetch(:laravel_version) < 5.3
192
193
  Rake::Task['laravel:artisan'].invoke('storage:link')
193
194
  end
194
195
 
@@ -221,15 +222,11 @@ namespace :laravel do
221
222
  end
222
223
 
223
224
  before 'deploy:starting', 'laravel:resolve_linked_dirs'
225
+ before 'deploy:starting', 'laravel:resolve_acl_paths'
224
226
  after 'deploy:starting', 'laravel:ensure_linked_dirs_exist'
227
+ after 'deploy:updating', 'laravel:ensure_acl_paths_exist'
228
+ before 'deploy:updated', 'deploy:set_permissions:acl'
225
229
  before 'composer:run', 'laravel:upload_dotenv_file'
226
230
  after 'composer:run', 'laravel:storage_link'
227
231
  after 'composer:run', 'laravel:optimize'
228
-
229
- # Only include ACL tasks if enabled
230
- if fetch(:laravel_set_acl_paths)
231
- before 'deploy:starting', 'laravel:resolve_acl_paths'
232
- before 'deploy:set_permissions:acl', 'laravel:ensure_acl_paths_exist'
233
- before 'deploy:publishing', 'deploy:set_permissions:acl'
234
- end
235
232
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-laravel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mitchell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-10-28 00:00:00.000000000 Z
12
+ date: 2017-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano