mina-secrets 1.3.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -8
- data/lib/mina/secrets/tasks.rb +1 -1
- data/lib/mina/secrets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e7a88fb4e02228f163922bbfb0727acda6cd8a8c026504636328f9264f6ac88
|
4
|
+
data.tar.gz: fea897352100651779df42183d76e808fde13e60b6847a421aec3b4d1375aae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 413aef1758ce479beaf9b695da66541c331a27a4d79197a42ffad96af9ce57cd027a28990cd974715a4b06c99f98fbdea166e5b94ee6d9fe13be323822b617b4
|
7
|
+
data.tar.gz: '09fe0c3d412c7031c9fef3cf7b972d382b9ca20a66b9a8c3c9b5369c4a0577fa6a90871a71d77fe74755ffe170c92eaec78f206c50d52f2f9da680fa33b8dfc6'
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Mina::Secrets
|
4
4
|
|
5
|
-
This is a mina plugin for
|
5
|
+
This is a mina plugin for [secrets\_cli](https://github.com/infinum/secrets_cli)
|
6
6
|
|
7
7
|
|
8
8
|
## Installation
|
@@ -38,16 +38,33 @@ Add
|
|
38
38
|
|
39
39
|
invoke :'secrets:pull'
|
40
40
|
|
41
|
-
to your deploy task after
|
41
|
+
to your deploy task after bundle:install
|
42
42
|
|
43
43
|
Example:
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
```ruby
|
46
|
+
task :deploy => :environment do
|
47
|
+
deploy do
|
48
|
+
invoke :'git:clone'
|
49
|
+
invoke :'deploy:link_shared_paths'
|
50
|
+
invoke :'bundle:install'
|
51
|
+
invoke :'secrets:pull'
|
52
|
+
|
53
|
+
...
|
54
|
+
```
|
55
|
+
|
56
|
+
Set secrets environment with `secrets_env` attribute.
|
57
|
+
Example:
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
task :production do
|
61
|
+
set :domain, 'production.com'
|
62
|
+
set :deploy_to, '/home/deploy/www/...'
|
63
|
+
set :rails_env, 'production'
|
64
|
+
set :secrets_env, 'production'
|
65
|
+
set :branch, 'master'
|
66
|
+
end
|
67
|
+
```
|
51
68
|
|
52
69
|
## Development
|
53
70
|
|
data/lib/mina/secrets/tasks.rb
CHANGED
@@ -15,6 +15,6 @@ namespace :secrets do
|
|
15
15
|
desc 'Secrets pull'
|
16
16
|
task :pull do
|
17
17
|
comment 'Secrets pull'
|
18
|
-
command "secrets pull -e #{fetch(:rails_env)} -d #{fetch(:shared_path)} -y"
|
18
|
+
command "#{bundle_prefix} secrets pull -e #{fetch(:secrets_env) || fetch(:rails_env)} -d #{fetch(:shared_path)} -y"
|
19
19
|
end
|
20
20
|
end
|
data/lib/mina/secrets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-secrets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.7.
|
125
|
+
rubygems_version: 2.7.6
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Mina plugin for secret_cli gem
|