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 +4 -4
- data/lib/capistrano/pushr/version.rb +1 -1
- data/lib/capistrano/tasks/pushr.rake +12 -0
- 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: 8076cc450209eae9a817f48d6628fa42758a64d9
|
|
4
|
+
data.tar.gz: 52d73b15ed7fa9a48f34a451071f8aa3264bf317
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c069da6e44d7a2b9f558ecb3830cf8ff57f8360e33ac9b07a4f07afddf6cd806f646269933e35e39cbe3a5db5a8afea8a12189cfbed19701d4722cdaa4ea0ce
|
|
7
|
+
data.tar.gz: 040ea3eb3eaae996af3f22d39a2ba9e649fe769feb811250a25fd87762c8824a568db86683d5c8b931af108035b6d44036616b2cf891ca604cb550eadeb6a714
|
|
@@ -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.
|
|
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
|
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|