capistrano-ejson 0.1.0 → 1.0.0
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 +4 -4
- data/README.md +3 -3
- data/capistrano-ejson.gemspec +1 -1
- data/lib/capistrano/tasks/ejson.cap +4 -4
- 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: 52ab2bba012dac91e2a2853d5e37a8c11bcba32f
|
4
|
+
data.tar.gz: 9a9d8f5c670fe2db4439a44ea769205dd5b95b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ffb237a4bd9e1eb01ad1707a2a3a1f9eb1cf71f6cd9283c8d0d6148c2e0dd77a042353cb1c6eae6dc5a7c91780f4c43929a07c765016f62bc2141792bd95549
|
7
|
+
data.tar.gz: 4d3e763679a3e523e5de21303afbee25dd4ff4a9466a833d2c9ea9a93062beab5748488dfae3a85c4a1f15781702118ae846fa1918fc8e0037e73f3102b13277
|
data/README.md
CHANGED
@@ -4,10 +4,10 @@ This gem makes it easy to use [ejson](https://github.com/Shopify/ejson) in appli
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this
|
7
|
+
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'capistrano-ejson', '~> 0.0
|
10
|
+
gem 'capistrano-ejson', '~> 1.0.0'
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -26,7 +26,7 @@ Require in `Capfile` to use the default task:
|
|
26
26
|
require 'capistrano/ejson'
|
27
27
|
```
|
28
28
|
|
29
|
-
The task `ejson:
|
29
|
+
The task `ejson:decrypt` will run after `deploy:updated`.
|
30
30
|
|
31
31
|
By default the file `config/secrets.ejson` will be decrypted to `config/secrets.json`. You can change this behavior by specifying the following config variables:
|
32
32
|
|
data/capistrano-ejson.gemspec
CHANGED
@@ -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-ejson"
|
7
|
-
spec.version = "
|
7
|
+
spec.version = "1.0.0"
|
8
8
|
spec.authors = ["Bouke van der Bijl"]
|
9
9
|
spec.email = ["bouke@shopify.com"]
|
10
10
|
spec.description = spec.summary = %q{Automatic EJSON decryption for Capistrano}
|
@@ -3,7 +3,7 @@ require 'open3'
|
|
3
3
|
namespace :ejson do
|
4
4
|
desc "Decrypt and upload ejson config files"
|
5
5
|
|
6
|
-
task :
|
6
|
+
task :decrypt do
|
7
7
|
ejson_file = fetch(:ejson_file)
|
8
8
|
ejson_output_file = fetch(:ejson_output_file)
|
9
9
|
ejson_deploy_mode = fetch(:ejson_deploy_mode)
|
@@ -13,7 +13,7 @@ namespace :ejson do
|
|
13
13
|
Open3.popen3('bundle', 'exec', 'ejson', 'decrypt', ejson_file) do |stdin, stdout, stderr, wait_thr|
|
14
14
|
if wait_thr.value == 0
|
15
15
|
contents = stdout.read
|
16
|
-
on
|
16
|
+
on release_roles(:all) do
|
17
17
|
upload! StringIO.new(contents), File.join(release_path, ejson_output_file)
|
18
18
|
end
|
19
19
|
else
|
@@ -21,7 +21,7 @@ namespace :ejson do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
when :remote
|
24
|
-
on
|
24
|
+
on release_roles(:all) do
|
25
25
|
within release_path do
|
26
26
|
execute :ejson, :decrypt, "-o", ejson_output_file, ejson_file
|
27
27
|
end
|
@@ -31,7 +31,7 @@ namespace :ejson do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
after 'deploy:updated', 'ejson:
|
34
|
+
after 'deploy:updated', 'ejson:decrypt'
|
35
35
|
end
|
36
36
|
|
37
37
|
namespace :load do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-ejson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bouke van der Bijl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|