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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f71acc70be0b343f6d68128e4e49ac9cc7303b0
4
- data.tar.gz: 5308d2b63504ba80d9cc972715cc0042485bfbbf
3
+ metadata.gz: f67bf457a4478005fe4b019f97d55c2fffd4f0ec
4
+ data.tar.gz: 1bab2af97837ca17d3cb0a50df6e5e2db76149d2
5
5
  SHA512:
6
- metadata.gz: 16dd69c4f51f97a7913c1e3c032e98d6368594aa3360f8139820d95fdb426b266b2fe71c08d86e6578a7d36927e99f9656fe91c5de4965490ef2515baf1e574f
7
- data.tar.gz: 3e08a7721d80647358f67b84b15cf75249da2406534a95cfd6763a1713e7be736edbf56a50ae5bff6d6f402f3cf65766d5e23382ce7174c11208d92f243d9583
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.1.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.4)
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 (2.9.2)
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
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-symfony-doctrine"
7
- spec.version = '0.1.0'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = ["Emil Kilhage"]
9
9
  spec.email = ["emil.kilhage@glooby.com"]
10
10
 
@@ -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.1.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-07-19 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano