capistrano3-pushr 1.0.2 → 1.0.3

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: febcda82c894a568dc188d369f0deb1e4d0bce6d
4
- data.tar.gz: 4ba9e3f7bf97c722d149ec870a2bea50b5129177
3
+ metadata.gz: 8076cc450209eae9a817f48d6628fa42758a64d9
4
+ data.tar.gz: 52d73b15ed7fa9a48f34a451071f8aa3264bf317
5
5
  SHA512:
6
- metadata.gz: e673830f6752ccef5efee2b8a54f0b7d459ccddd01226d85860b95f9c5260b713ef4644d8442235dd59652bf57527cc20481be62dd97cd78807b76d09467ad85
7
- data.tar.gz: 0ede6adc4f35807a82f6ecaaa95897bc961f5a511e554104cae3cd398ca5c560325761b1aeb7f612bb64af419114767c3f2b4a681d70cb31b8bcbc6ca7558b9f
6
+ metadata.gz: 6c069da6e44d7a2b9f558ecb3830cf8ff57f8360e33ac9b07a4f07afddf6cd806f646269933e35e39cbe3a5db5a8afea8a12189cfbed19701d4722cdaa4ea0ce
7
+ data.tar.gz: 040ea3eb3eaae996af3f22d39a2ba9e649fe769feb811250a25fd87762c8824a568db86683d5c8b931af108035b6d44036616b2cf891ca604cb550eadeb6a714
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Pushr
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
@@ -5,6 +5,7 @@ namespace :load do
5
5
  set :pushr_pid, -> { File.join shared_path, 'tmp', 'pids', 'pushr.pid' }
6
6
  set :pushr_configuration, -> { File.join shared_path, 'config', 'pushr.yml' }
7
7
  set :pushr_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
8
+ set :pushr_certificates, -> { File.join 'config', 'push' }
8
9
  set :pushr_redis_host, -> { fetch(:redis_host, 'localhost') }
9
10
  set :pushr_redis_port, -> { fetch(:redis_port, '6379') }
10
11
  set :pushr_redis_namespace, -> { fetch(:redis_namespace, "pushr_#{fetch(:application)}_#{fetch(:stage)}") }
@@ -72,6 +73,13 @@ namespace :pushr do
72
73
  end
73
74
  end
74
75
 
76
+ desc 'Upload certificates.'
77
+ task :upload_certificates do
78
+ on roles(fetch(:pushr_roles, :all)) do
79
+ upload_certificates
80
+ end
81
+ end
82
+
75
83
  ###
76
84
 
77
85
  def pid
@@ -131,4 +139,8 @@ namespace :pushr do
131
139
  puts capture('bundle', 'exec', 'pushr', '--version')
132
140
  end
133
141
  end
142
+
143
+ def upload_certificates
144
+ upload! fetch(:pushr_certificates), File.join(shared_path, 'config'), recursive: true
145
+ end
134
146
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-pushr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zsofia Balogh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano