capistrano-secrets-yml 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: c1e2d607824ee24040560464c7edeb88607fa7d027959a0b3bb418c73d1f5e70
4
- data.tar.gz: 8146a38f3baaa15e9f13731b678dc735cfdfb6ce7ba194008100791ebb7e71e5
3
+ metadata.gz: 37acf06811ccf37bd93891b990f449e73b7d3da8ed34b1513393592e101e03bf
4
+ data.tar.gz: 3b946b28c8591b05936ccf7a18475259d2736b3c08ecbb181991b2c66031a417
5
5
  SHA512:
6
- metadata.gz: 668d513957b9e35bc178e57ed7d84d0f35d7ec09eecd6d4f7fade40adf1aeb7660abdfa958580a5e9ef7e92fe6971b1ee4e0c199df043947ee7fa990f6ed1590
7
- data.tar.gz: 7659a29afce165df2d61eb66140048c61b2adee027529d760ea90d84b30f2c19b20cb11ca9bc2a1c920b98309e89d58088bf3b8f68987d8c8f2648a84b3db725
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 server.<br/>
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`
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module SecretsYml
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -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, fetch(:system_user), StringIO.new(content), secrets_yml_remote_path)
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2017-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano