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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e6b8b6ebbee724f1f99e0f9a9f05caccb82cc3e
4
- data.tar.gz: 19dc073125562cdb44f152331834178df1439953
3
+ metadata.gz: 27ff86e96e21fa47113ee8ff14a939930a689fe6
4
+ data.tar.gz: 15acbc6ef474b240efad01368f275ac1cc7d14c5
5
5
  SHA512:
6
- metadata.gz: 129d4162612cf3ae83394a098d5807eafadc4210acd1dbe41a325c9249e8ea2fbdab936ebac6dac8878cf380228cfa9b79eba02dea23d90199fb30c2ab1c15e3
7
- data.tar.gz: 67a95de7643820f46df08d8291aae86ef247a2bead67b371aa47cdb5a7367b008ec4abd8bbeee148d074e1979918e741213038b2b502a934880722b9b5ec8793
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mina/secrets`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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
@@ -4,10 +4,17 @@ require 'mina/rails'
4
4
  namespace :secrets do
5
5
  set :term_mode, :pretty
6
6
 
7
- desc 'secrets auth'
8
- task auth: :environment do
9
- queue %(echo "-----> Secrets auth")
10
- queue! %(secrets auth #{verbose_mode? ? '-V' : ''})
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'
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Secrets
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
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: 0.1.1
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-02-15 00:00:00.000000000 Z
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.4.5
125
+ rubygems_version: 2.5.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Mina plugin for secret_cli gem