capistrano-secrets-yml 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/lib/capistrano/secrets_yml/version.rb +1 -1
- data/lib/capistrano/tasks/secrets_yml.rake +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37acf06811ccf37bd93891b990f449e73b7d3da8ed34b1513393592e101e03bf
|
4
|
+
data.tar.gz: 3b946b28c8591b05936ccf7a18475259d2736b3c08ecbb181991b2c66031a417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6976b38bcb209403085238d3f4031a38989e08ffc80e375912785e16afcdde071771a466b82182284d7d75fa23a6deab0218000c430e1dae6631ccbcae69252e
|
7
|
+
data.tar.gz: d7894a23ba3f8b9721b4b19081675a5cd69ca59171953f0eee77855f0ab1fc00829f5b1b31afd0bf7dff77f70bb536515bf08147fcadb58371b554f5c8ca353b
|
data/README.md
CHANGED
@@ -29,10 +29,6 @@ And then:
|
|
29
29
|
|
30
30
|
require 'capistrano/secrets_yml'
|
31
31
|
|
32
|
-
- Within your app/config/deploy/#{environment}.rb files, make sure to specify:
|
33
|
-
|
34
|
-
set :system_user, 'ssh_user' # defaults to root user; This user will SSH into the servers to generate all necessary files
|
35
|
-
|
36
32
|
- Create `secrets.yml` file on the remote server by executing this task:
|
37
33
|
|
38
34
|
$ bundle exec cap production setup
|
@@ -62,7 +58,7 @@ You can now proceed with other deployment tasks.
|
|
62
58
|
|
63
59
|
When you execute `$ bundle exec production setup`:
|
64
60
|
|
65
|
-
- secrets from your local `secrets.yml` are copied to the
|
61
|
+
- secrets from your local `secrets.yml` are copied to the servers in your config/deploy/{environment}.rb files using the user: value. a.<br/>
|
66
62
|
- only "stage" secrets are copied: if you are deploying to `production`,
|
67
63
|
only production secrets are copied there
|
68
64
|
- on the server secrets file is located in `#{shared_path}/config/secrets.yml`
|
@@ -40,8 +40,7 @@ namespace :secrets_yml do
|
|
40
40
|
content = secrets_yml_content
|
41
41
|
on release_roles :all do
|
42
42
|
execute :mkdir, "-pv", File.dirname(secrets_yml_remote_path)
|
43
|
-
Net::SCP.upload!(self.host.hostname,
|
44
|
-
# upload! StringIO.new(content), secrets_yml_remote_path
|
43
|
+
Net::SCP.upload!(self.host.hostname, self.host.user, StringIO.new(content), secrets_yml_remote_path)
|
45
44
|
end
|
46
45
|
end
|
47
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-secrets-yml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Sutic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|