capistrano-symfony-doctrine 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +13 -1
- data/capistrano-symfony-doctrine.gemspec +1 -1
- data/lib/capistrano/tasks/symfony-doctrine.rake +26 -0
- 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: f67bf457a4478005fe4b019f97d55c2fffd4f0ec
|
4
|
+
data.tar.gz: 1bab2af97837ca17d3cb0a50df6e5e2db76149d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 836472c5007cbff7e39f0100396a88869f39e0c9188173800f06f14d7ee3a2489790fb4e0eefd49420aa5ca84e55813aa70952ce03c98eaa0785f629a56ad496
|
7
|
+
data.tar.gz: cbe9926878355d07b7f2d42d193185afadd3e3d392dd9e3cb1219c7f778428a6aed9109c639e5da760fb3baef3efedc6d5084d7895b74a654fc257f4a2b6d638
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-symfony-doctrine (0.
|
4
|
+
capistrano-symfony-doctrine (0.2.0)
|
5
5
|
capistrano (>= 3.1.0)
|
6
6
|
capistrano-symfony (>= 0.4.0)
|
7
7
|
|
@@ -20,11 +20,11 @@ GEM
|
|
20
20
|
capistrano (~> 3.1)
|
21
21
|
capistrano-composer (~> 0.0.3)
|
22
22
|
capistrano-file-permissions (~> 0.1.0)
|
23
|
-
colorize (0.7.
|
23
|
+
colorize (0.7.7)
|
24
24
|
i18n (0.7.0)
|
25
25
|
net-scp (1.2.1)
|
26
26
|
net-ssh (>= 2.6.5)
|
27
|
-
net-ssh (
|
27
|
+
net-ssh (3.0.1)
|
28
28
|
rake (10.4.2)
|
29
29
|
sshkit (1.7.1)
|
30
30
|
colorize (>= 0.7.0)
|
data/README.md
CHANGED
@@ -31,13 +31,25 @@ require 'capistrano/symfony-doctrine'
|
|
31
31
|
Configure in deploy.rb to execute the tasks:
|
32
32
|
|
33
33
|
```ruby
|
34
|
+
before 'deploy:updated', 'symfony:cache:clear_metadata'
|
35
|
+
before 'deploy:updated', 'symfony:cache:clear_query'
|
36
|
+
before 'deploy:updated', 'symfony:cache:clear_result'
|
37
|
+
|
34
38
|
before 'deploy:updated', 'symfony:doctrine:migrations'
|
35
39
|
```
|
36
40
|
|
37
41
|
### Configurable options:
|
38
42
|
|
39
43
|
```ruby
|
40
|
-
|
44
|
+
set :symfony_doctrine_migrations_flags, '--no-interaction'
|
45
|
+
set :symfony_doctrine_migrations_roles, :db
|
46
|
+
|
47
|
+
set :symfony_doctrine_cache_clear_metadata_flags, '--=env=prod'
|
48
|
+
set :symfony_doctrine_cache_clear_metadata_roles, :db
|
49
|
+
set :symfony_doctrine_cache_clear_query_flags, '--=env=prod'
|
50
|
+
set :symfony_doctrine_cache_clear_query_roles, :db
|
51
|
+
set :symfony_doctrine_cache_clear_result_flags, '--=env=prod'
|
52
|
+
set :symfony_doctrine_cache_clear_result_roles, :db
|
41
53
|
```
|
42
54
|
|
43
55
|
## Development
|
@@ -6,6 +6,26 @@ namespace :symfony do
|
|
6
6
|
invoke "symfony:console", "doctrine:migrations:migrate", fetch(:symfony_doctrine_migrations_flags)
|
7
7
|
end
|
8
8
|
end
|
9
|
+
namespace :doctrine do
|
10
|
+
desc "Run app/console doctrine:cache:clear-metadata"
|
11
|
+
task :clear_metadata do
|
12
|
+
on roles fetch(:symfony_doctrine_cache_clear_metadata_roles) do
|
13
|
+
invoke "symfony:console", "doctrine:cache:clear-metadata", fetch(:symfony_doctrine_cache_clear_metadata_flags)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
desc "Run app/console doctrine:cache:clear-query"
|
17
|
+
task :clear_query do
|
18
|
+
on roles fetch(:symfony_doctrine_cache_clear_query_roles) do
|
19
|
+
invoke "symfony:console", "doctrine:cache:clear-query", fetch(:symfony_doctrine_cache_clear_query_flags)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
desc "Run app/console doctrine:cache:clear-result"
|
23
|
+
task :clear_result do
|
24
|
+
on roles fetch(:symfony_doctrine_cache_clear_result_roles) do
|
25
|
+
invoke "symfony:console", "doctrine:cache:clear-result", fetch(:symfony_doctrine_cache_clear_result_flags)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
9
29
|
end
|
10
30
|
end
|
11
31
|
|
@@ -13,5 +33,11 @@ namespace :load do
|
|
13
33
|
task :defaults do
|
14
34
|
set :symfony_doctrine_migrations_flags, '--no-interaction'
|
15
35
|
set :symfony_doctrine_migrations_roles, :db
|
36
|
+
set :symfony_doctrine_cache_clear_metadata_flags, '--=env=prod'
|
37
|
+
set :symfony_doctrine_cache_clear_metadata_roles, :db
|
38
|
+
set :symfony_doctrine_cache_clear_query_flags, '--=env=prod'
|
39
|
+
set :symfony_doctrine_cache_clear_query_roles, :db
|
40
|
+
set :symfony_doctrine_cache_clear_result_flags, '--=env=prod'
|
41
|
+
set :symfony_doctrine_cache_clear_result_roles, :db
|
16
42
|
end
|
17
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-symfony-doctrine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Kilhage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|