rezzza_capistrano_tools 0.3.0.dev → 0.3.1.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/apc_clear.rb +3 -1
- data/lib/rezzza_capistrano_tools.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a51222b237a0b70f55a565fb19b14839362845e
|
4
|
+
data.tar.gz: 3d018c7d1ca1e82bc3a30d67995b03114792b1b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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)
|