mina-secrets 0.1.1 → 0.2.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 +29 -4
- data/lib/mina/secrets/tasks.rb +11 -4
- data/lib/mina/secrets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ff86e96e21fa47113ee8ff14a939930a689fe6
|
4
|
+
data.tar.gz: 15acbc6ef474b240efad01368f275ac1cc7d14c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a0438b8068cca4297a8b932c9b737a8e64a4da52ec6fcb5310ee36686843bec87d22d7b2f6534121bc0dd2b4d489a95a2e3df0bf94295aaf8a78ab03b93b3db
|
7
|
+
data.tar.gz: ea73cae73210adcba59d27f722cef1829857f4e2412837f5b26020393b15b2091e5d651db09c09e3089ac92feb121b8c0be619c18dddad03bbca4bc54a1ce8df
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/mina-secrets.svg)](https://badge.fury.io/rb/mina-secrets)
|
2
|
+
|
1
3
|
# Mina::Secrets
|
2
4
|
|
3
|
-
|
5
|
+
This is a mina plugin for (secrets\_cli)[https://github.com/infinum/secrets_cli]
|
4
6
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -22,7 +23,31 @@ Or install it yourself as:
|
|
22
23
|
|
23
24
|
## Usage
|
24
25
|
|
25
|
-
|
26
|
+
### Setup
|
27
|
+
|
28
|
+
You need to run at least once:
|
29
|
+
|
30
|
+
mina secrets:auth
|
31
|
+
|
32
|
+
or add to your setup task:
|
33
|
+
|
34
|
+
invoke :'secrets:auth'
|
35
|
+
|
36
|
+
|
37
|
+
Add
|
38
|
+
|
39
|
+
invoke :'secrets:pull'
|
40
|
+
|
41
|
+
to your deploy task after git:pull
|
42
|
+
|
43
|
+
Example:
|
44
|
+
|
45
|
+
task :deploy => :environment do
|
46
|
+
deploy do
|
47
|
+
invoke :'git:clone'
|
48
|
+
invoke :'secrets:pull'
|
49
|
+
invoke :'deploy:link_shared_paths'
|
50
|
+
...
|
26
51
|
|
27
52
|
## Development
|
28
53
|
|
@@ -32,7 +57,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
57
|
|
33
58
|
## Contributing
|
34
59
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
60
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/infinum/mina-secrets. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
61
|
|
37
62
|
|
38
63
|
## License
|
data/lib/mina/secrets/tasks.rb
CHANGED
@@ -4,10 +4,17 @@ require 'mina/rails'
|
|
4
4
|
namespace :secrets do
|
5
5
|
set :term_mode, :pretty
|
6
6
|
|
7
|
-
desc 'secrets
|
8
|
-
task
|
9
|
-
queue %(echo "-----> Secrets
|
10
|
-
queue! %(secrets
|
7
|
+
desc 'secrets policies'
|
8
|
+
task policies: :environment do
|
9
|
+
queue %(echo "-----> Secrets policies")
|
10
|
+
queue! %(secrets policies #{verbose_mode? ? '-V' : ''})
|
11
|
+
end
|
12
|
+
|
13
|
+
desc 'secrets setup'
|
14
|
+
task setup: :environment do
|
15
|
+
queue %(echo "-----> Secrets setup")
|
16
|
+
queue! %(mkdir -p #{shared_path}/config)
|
17
|
+
queue! %(touch #{shared_path}/config/application.yml)
|
11
18
|
end
|
12
19
|
|
13
20
|
desc 'Secrets pull'
|
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: 0.
|
4
|
+
version: 0.2.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: 2016-
|
11
|
+
date: 2016-04-13 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.
|
125
|
+
rubygems_version: 2.5.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Mina plugin for secret_cli gem
|