secrets_cli 1.4.1 → 1.4.2

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
  SHA1:
3
- metadata.gz: 562c2fc56786d7e707db7f9454c1a99e5c58d087
4
- data.tar.gz: c70dd65acd59f4826d289dd2c187792a6a236ab5
3
+ metadata.gz: 5645e6bbd57a7cb56d593a936a5caf4dcb30a513
4
+ data.tar.gz: a2e49c1e7e6d7307e0f3bb428f9dff34a94fa8f1
5
5
  SHA512:
6
- metadata.gz: b5fbcf81c774356bf19837251677b5bd6bd6d0c8970dabbb71ba60f67384fc983b3f2e6f0bef04e3a8c454baf7c27c12adc77fc36d8662a2671b0ac66a6fc22f
7
- data.tar.gz: 47dbd624708836b95d4574d90d1c3b79c836fb5955441717f4f7a7df54c0659825949b832c6df259a89c20f3f8ce48401b530baad5f3e3de0ae9b2df1482db21
6
+ metadata.gz: 77007737f657665911e3ac92b4da638cdcefc4951bfc901be4dfea4004405935d80cc73d5a04362c60f017dd70f5f18e31c5f8804c04c26412149ff0072eaced
7
+ data.tar.gz: 5410cd23b2cb2f26dcb6162a51c951ad5b94254397cd0000792489f4429ad43a509dd59aab20ced89e0f858a486db1f9da7454a9f0ee6e20ba8c72f8c96c4c53
data/exe/secrets CHANGED
@@ -34,11 +34,11 @@ end
34
34
  command :pull do |c|
35
35
  c.syntax = 'secrets pull [options]'
36
36
  c.summary = 'Use to read from vault server to secrets file'
37
+ c.option '-c', '--check', 'Check for difference'
37
38
  c.option '-e', '--environment STRING', String, 'Set environment, default: development'
38
39
  c.option '-f', '--secrets_file STRING', String, 'Override secrets_file'
39
40
  c.option '-k', '--secrets_storage_key STRING', String, 'Override secrets_storage_key'
40
41
  c.option '-d', '--secrets_dir STRING', String, 'Override secrets_dir, default: "."'
41
- c.option '-y', '--without_prompt', 'Pull without prompt'
42
42
  c.action do |_args, options|
43
43
  SecretsCli::Vault::Auth.new(options).call
44
44
  SecretsCli::Vault::Pull.new(options).call
@@ -48,6 +48,7 @@ end
48
48
  command :push do |c|
49
49
  c.syntax = 'secrets push [options]'
50
50
  c.summary = 'Use to write to vault server from secrets file'
51
+ c.option '-c', '--check', 'Check for difference'
51
52
  c.option '-y', '--without_prompt', 'Push without prompt'
52
53
  c.option '-e', '--environment STRING', String, 'Set environment, default: development'
53
54
  c.option '-f', '--secrets_file STRING', String, 'Override secrets_file'
@@ -14,7 +14,7 @@ module SecretsCli
14
14
 
15
15
  def command
16
16
  secrets = super
17
- compare(secrets) unless options.without_prompt
17
+ compare(secrets) if options.check
18
18
  write(secrets)
19
19
  secrets
20
20
  end
@@ -13,7 +13,7 @@ module SecretsCli
13
13
 
14
14
  def call
15
15
  return if !options.without_prompt && !are_you_sure?
16
- compare unless options.without_prompt
16
+ compare if options.check
17
17
  super
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module SecretsCli
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secrets_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic