rezzza_capistrano_tools 0.3.0.dev → 0.3.1.dev

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: 0c8b649519ebfd339f28c8c0cb3db809704b01eb
4
- data.tar.gz: 52cab92a0fb36fb662d10fae6a9266b22151c25e
3
+ metadata.gz: 9a51222b237a0b70f55a565fb19b14839362845e
4
+ data.tar.gz: 3d018c7d1ca1e82bc3a30d67995b03114792b1b2
5
5
  SHA512:
6
- metadata.gz: 98f932b7979c479eeb0060f65d96e7192fdd937fa7674c5d1f8d90baa6c58b96243d9ba9fd769ce35239fb90acfa81cd1495423eb720eb6a5f8ea3ab949c93d5
7
- data.tar.gz: 8e7755a4121a69fba227b417b943b5991e96c804e5ec2014b6083b6afa02fc54af4b120b11a22b0cf562ab7ce2c3e816fbc76a87a30f27f570bb00a64f085a3b
6
+ metadata.gz: 47e66435a414707f466de53646507a10ed99020eaeab385ba90ca2ab747d38912606848163308b097f44726a06bd8419a2227503b87e6f5a2d699aeee3031968
7
+ data.tar.gz: 00a3f400b134e02e922252b99d6b2a97473487a5cae63ecc56159ea44890e29bcb56dfcf8dd6e554f3696718a02cb0c94c168f05da95948b3ec0d9e13d182593
data/README.md CHANGED
@@ -43,4 +43,4 @@ set :apc_clear_security_user, "user"
43
43
  set :apc_clear_security_pass, "pass"
44
44
  ```
45
45
 
46
- On `before deploy:symlink`, it'll call `curl --user user:pass "http://myhosttoapcapp/app.php?keys=key,^foo" -o /dev/null`
46
+ On `before deploy:create_symlink`, it'll call `curl --user user:pass "http://myhosttoapcapp/app.php?keys=key,^foo" -o /dev/null`
data/lib/apc_clear.rb CHANGED
@@ -4,7 +4,7 @@ set :apc_clear_security, nil
4
4
  set :apc_clear_security_user, nil
5
5
  set :apc_clear_security_pass, nil
6
6
 
7
- before "deploy:symlink" do
7
+ before "deploy:create_symlink" do
8
8
  if (apc_keys_clear.kind_of?(Array) == true && apc_keys_clear.count > 0)
9
9
  case apc_clear_security
10
10
  when "none"
@@ -15,6 +15,8 @@ before "deploy:symlink" do
15
15
  raise "apc_clear_security must be “none“ or “http_basic“"
16
16
  end
17
17
 
18
+ capifony_pretty_print("Clearing APC cache.")
19
+
18
20
  command = "curl #{options} \"#{apc_clear_host}?keys=#{apc_keys_clear.join(',')}\" -o /dev/null"
19
21
  result = system "#{command}"
20
22
  if (false == result)
@@ -13,6 +13,7 @@ module RezzzaCapistranoTools
13
13
 
14
14
  load_paths.push File.expand_path('../', __FILE__)
15
15
  load 'vaultage'
16
+ load 'apc_clear'
16
17
  end
17
18
  end
18
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rezzza_capistrano_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.dev
4
+ version: 0.3.1.dev
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les écureuils de Jean-Marc