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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc428dfc53d7030fca9aca10063fd212e6776d19ffc2bdc5765c7050e9a5aa9c
4
- data.tar.gz: 58a6e624c54e9bf30e1b0467ef6b607d8ec5ade33bf25395195d1b584ee37166
3
+ metadata.gz: 4e7a88fb4e02228f163922bbfb0727acda6cd8a8c026504636328f9264f6ac88
4
+ data.tar.gz: fea897352100651779df42183d76e808fde13e60b6847a421aec3b4d1375aae7
5
5
  SHA512:
6
- metadata.gz: 9a635d3149ed52b5e99081008009aec465317db7ff08f093d1477c2fd6ca9257cb1e85d7d9c0b750a3457c31b0d849fab222ca28dc4a43ba65622405c1b762b0
7
- data.tar.gz: 6d3272309a8952820aa6e45d61783aecb271de85aa7d627a99748ef0390d56327ab88769a90e20d280a10414346b2feef6ce0ae9f6e3a9f26dbd87e613fd55d3
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 (secrets\_cli)[https://github.com/infinum/secrets_cli]
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 git:pull
41
+ to your deploy task after bundle:install
42
42
 
43
43
  Example:
44
44
 
45
- task :deploy => :environment do
46
- deploy do
47
- invoke :'git:clone'
48
- invoke :'secrets:pull'
49
- invoke :'deploy:link_shared_paths'
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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Secrets
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
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: 1.3.0
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: 2018-01-29 00:00:00.000000000 Z
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.3
125
+ rubygems_version: 2.7.6
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Mina plugin for secret_cli gem