rezzza_capistrano_tools 0.2.0.dev → 0.3.0.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 +7 -0
- data/README.md +27 -4
- data/lib/apc_clear.rb +24 -0
- metadata +23 -44
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0c8b649519ebfd339f28c8c0cb3db809704b01eb
|
4
|
+
data.tar.gz: 52cab92a0fb36fb662d10fae6a9266b22151c25e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 98f932b7979c479eeb0060f65d96e7192fdd937fa7674c5d1f8d90baa6c58b96243d9ba9fd769ce35239fb90acfa81cd1495423eb720eb6a5f8ea3ab949c93d5
|
7
|
+
data.tar.gz: 8e7755a4121a69fba227b417b943b5991e96c804e5ec2014b6083b6afa02fc54af4b120b11a22b0cf562ab7ce2c3e816fbc76a87a30f27f570bb00a64f085a3b
|
data/README.md
CHANGED
@@ -5,6 +5,14 @@ Rezzza Capistrano Tools
|
|
5
5
|
Vaultage
|
6
6
|
--------
|
7
7
|
|
8
|
+
Configuration
|
9
|
+
|
10
|
+
```
|
11
|
+
set :vaultage, true
|
12
|
+
set(:vaultage_files) {[
|
13
|
+
["/app/config/parameters/#{rails_env}.yml.gpg", "/app/config/parameters.yml"]
|
14
|
+
]}
|
15
|
+
```
|
8
16
|
|
9
17
|
1) Decrypt:
|
10
18
|
~~~~~~~~~~~
|
@@ -15,9 +23,24 @@ After `composer:install`:
|
|
15
23
|
- Decrypt them.
|
16
24
|
- Upload them in specific location.
|
17
25
|
|
26
|
+
|
27
|
+
2) Diff
|
28
|
+
~~~~~~~~~~~
|
29
|
+
|
30
|
+
`cap staging vaultage:diff`
|
31
|
+
|
32
|
+
|
33
|
+
Apc cache clear
|
34
|
+
---------------
|
35
|
+
|
36
|
+
Configuration
|
37
|
+
|
18
38
|
```
|
19
|
-
set :
|
20
|
-
set
|
21
|
-
|
22
|
-
|
39
|
+
set :apc_keys_clear, ['key', '^foo']
|
40
|
+
set :apc_clear_host, "http://myhosttoapcapp/app.php"
|
41
|
+
set :apc_clear_security, "http_basic" # none available too.
|
42
|
+
set :apc_clear_security_user, "user"
|
43
|
+
set :apc_clear_security_pass, "pass"
|
23
44
|
```
|
45
|
+
|
46
|
+
On `before deploy:symlink`, it'll call `curl --user user:pass "http://myhosttoapcapp/app.php?keys=key,^foo" -o /dev/null`
|
data/lib/apc_clear.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
set :apc_keys_clear, []
|
2
|
+
set :apc_clear_host, nil
|
3
|
+
set :apc_clear_security, nil
|
4
|
+
set :apc_clear_security_user, nil
|
5
|
+
set :apc_clear_security_pass, nil
|
6
|
+
|
7
|
+
before "deploy:symlink" do
|
8
|
+
if (apc_keys_clear.kind_of?(Array) == true && apc_keys_clear.count > 0)
|
9
|
+
case apc_clear_security
|
10
|
+
when "none"
|
11
|
+
options = nil;
|
12
|
+
when "http_basic"
|
13
|
+
options = "--user #{apc_clear_security_user}:#{apc_clear_security_pass}"
|
14
|
+
else
|
15
|
+
raise "apc_clear_security must be “none“ or “http_basic“"
|
16
|
+
end
|
17
|
+
|
18
|
+
command = "curl #{options} \"#{apc_clear_host}?keys=#{apc_keys_clear.join(',')}\" -o /dev/null"
|
19
|
+
result = system "#{command}"
|
20
|
+
if (false == result)
|
21
|
+
raise "Error when clearing the cache with command: '#{command}'"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,73 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rezzza_capistrano_tools
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
- dev
|
10
|
-
version: 0.2.0.dev
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0.dev
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Les écureuils de Jean-Marc
|
14
8
|
- RezZza
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2013-09-04 00:00:00 +02:00
|
20
|
-
default_executable:
|
12
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
21
13
|
dependencies: []
|
22
|
-
|
23
14
|
description: |
|
24
15
|
- Vaultage integration
|
16
|
+
- Apc cache clear before symlink
|
25
17
|
- Diffs between local and remote
|
26
|
-
|
27
|
-
email:
|
18
|
+
email:
|
28
19
|
- py.stephane1@gmail.com
|
29
20
|
executables: []
|
30
|
-
|
31
21
|
extensions: []
|
32
|
-
|
33
22
|
extra_rdoc_files: []
|
34
|
-
|
35
|
-
|
23
|
+
files:
|
24
|
+
- lib/apc_clear.rb
|
36
25
|
- lib/rezzza_capistrano_tools.rb
|
37
26
|
- lib/vaultage.rb
|
38
27
|
- README.md
|
39
28
|
- LICENSE
|
40
|
-
has_rdoc: true
|
41
29
|
homepage: http://verylastroom.com
|
42
30
|
licenses: []
|
43
|
-
|
31
|
+
metadata: {}
|
44
32
|
post_install_message:
|
45
33
|
rdoc_options: []
|
46
|
-
|
47
|
-
require_paths:
|
34
|
+
require_paths:
|
48
35
|
- lib
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
- - ">"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
segments:
|
61
|
-
- 1
|
62
|
-
- 3
|
63
|
-
- 1
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - '>'
|
44
|
+
- !ruby/object:Gem::Version
|
64
45
|
version: 1.3.1
|
65
46
|
requirements: []
|
66
|
-
|
67
47
|
rubyforge_project: rezzza_capistrano_tools
|
68
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.0.3
|
69
49
|
signing_key:
|
70
|
-
specification_version:
|
50
|
+
specification_version: 4
|
71
51
|
summary: Some tools for capistrano.
|
72
52
|
test_files: []
|
73
|
-
|