capistrano-ejson 1.0.0 → 1.0.1

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: 52ab2bba012dac91e2a2853d5e37a8c11bcba32f
4
- data.tar.gz: 9a9d8f5c670fe2db4439a44ea769205dd5b95b3e
3
+ metadata.gz: c508f0f64861473322c5f44bb0ba0b325d7cf8e9
4
+ data.tar.gz: 8c1ceb4a0594e5291fb669d77e56de4021f37a6f
5
5
  SHA512:
6
- metadata.gz: 6ffb237a4bd9e1eb01ad1707a2a3a1f9eb1cf71f6cd9283c8d0d6148c2e0dd77a042353cb1c6eae6dc5a7c91780f4c43929a07c765016f62bc2141792bd95549
7
- data.tar.gz: 4d3e763679a3e523e5de21303afbee25dd4ff4a9466a833d2c9ea9a93062beab5748488dfae3a85c4a1f15781702118ae846fa1918fc8e0037e73f3102b13277
6
+ metadata.gz: 19c8a6b8bc027c0d067bd7fe5d2f29e95b700eef11f3c566e4d1267717b9163fadb0b2f5d0c297312177978c06f7586b95771129e787044121c9c8eb2057e4a3
7
+ data.tar.gz: 906aa68770018c0b2ea96ecee2dbd6a8ba45de95c4cc40d09b391799acdf2a509d1f4a7caed9874a6e8ed73f87737905084d40eceecc524fd44376f975f49d98
@@ -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 = "1.0.0"
7
+ spec.version = "1.0.1"
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}
@@ -5,6 +5,7 @@ namespace :ejson do
5
5
 
6
6
  task :decrypt do
7
7
  ejson_file = fetch(:ejson_file)
8
+ ejson_file_mode = fetch(:ejson_file_mode)
8
9
  ejson_output_file = fetch(:ejson_output_file)
9
10
  ejson_deploy_mode = fetch(:ejson_deploy_mode)
10
11
 
@@ -14,7 +15,7 @@ namespace :ejson do
14
15
  if wait_thr.value == 0
15
16
  contents = stdout.read
16
17
  on release_roles(:all) do
17
- upload! StringIO.new(contents), File.join(release_path, ejson_output_file)
18
+ upload! StringIO.new(contents), File.join(release_path, ejson_output_file), mode: ejson_file_mode
18
19
  end
19
20
  else
20
21
  raise "Failed to decrypt file #{stderr.read}"
@@ -37,6 +38,7 @@ end
37
38
  namespace :load do
38
39
  task :defaults do
39
40
  set :ejson_file, 'config/secrets.ejson'
41
+ set :ejson_file_mode, nil
40
42
  set :ejson_output_file, 'config/secrets.json'
41
43
  set :ejson_deploy_mode, :local
42
44
  end
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: 1.0.0
4
+ version: 1.0.1
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-13 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.2.2
111
+ rubygems_version: 2.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Automatic EJSON decryption for Capistrano