secrets_cli 1.4.0 → 1.4.1

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: 16774bc319041eaa7626b8fa5d549e177fe32a7b
4
- data.tar.gz: 9fe08ca8f65f426885b8c520f77b0eacb1384a9b
3
+ metadata.gz: 562c2fc56786d7e707db7f9454c1a99e5c58d087
4
+ data.tar.gz: c70dd65acd59f4826d289dd2c187792a6a236ab5
5
5
  SHA512:
6
- metadata.gz: 102a529eea123fae032c33f514ec6ac82acf1da7b26c093e488a2c7ec2bf40fdfda790db14d3dd197ac6e4e71d608b15dc227b69e19afe3761a09e6c837dc9e5
7
- data.tar.gz: b2685901af34edf2ec657471648961b0b9034c9e27b75ccc291dcc4d07faad8d2d9697f905e0bdaed175204e3873e8993548e42d1316144895b3697346774896
6
+ metadata.gz: b5fbcf81c774356bf19837251677b5bd6bd6d0c8970dabbb71ba60f67384fc983b3f2e6f0bef04e3a8c454baf7c27c12adc77fc36d8662a2671b0ac66a6fc22f
7
+ data.tar.gz: 47dbd624708836b95d4574d90d1c3b79c836fb5955441717f4f7a7df54c0659825949b832c6df259a89c20f3f8ce48401b530baad5f3e3de0ae9b2df1482db21
data/exe/secrets CHANGED
@@ -38,6 +38,7 @@ command :pull do |c|
38
38
  c.option '-f', '--secrets_file STRING', String, 'Override secrets_file'
39
39
  c.option '-k', '--secrets_storage_key STRING', String, 'Override secrets_storage_key'
40
40
  c.option '-d', '--secrets_dir STRING', String, 'Override secrets_dir, default: "."'
41
+ c.option '-y', '--without_prompt', 'Pull without prompt'
41
42
  c.action do |_args, options|
42
43
  SecretsCli::Vault::Auth.new(options).call
43
44
  SecretsCli::Vault::Pull.new(options).call
@@ -14,7 +14,7 @@ module SecretsCli
14
14
 
15
15
  def command
16
16
  secrets = super
17
- compare(secrets)
17
+ compare(secrets) unless options.without_prompt
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
16
+ compare unless options.without_prompt
17
17
  super
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module SecretsCli
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
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.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic