dh-proteus 0.3.7 → 0.3.8

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
  SHA256:
3
- metadata.gz: 9cdd09685fbb59a3fba9da1b7b1e0b1f84bdbaec975dccd6eb3148526ab7ae05
4
- data.tar.gz: 631163e0ae642ae6328eff584a7be1eafb1fbf8d1f0de7fab19e52d45832dc15
3
+ metadata.gz: 525a435f4b60584612eb0cc1a07e2514551c269d7fa88116a86dceba62de1ee7
4
+ data.tar.gz: 8a374ee6e980024a09344ecf9be84cea570ce2c988b4869906d512ee0f999722
5
5
  SHA512:
6
- metadata.gz: c62a0a514498abeef4f19cf913920f98802726ba83694bebc8dd03ece8cbfb4a70a11b2304b44ba4bfae2e95049e58de8c36fb54f37cd0cfe753e2d6681310ff
7
- data.tar.gz: f010f09c3129f436ae3bd728020ee395c3fdbd22c42ef7dec4dc8371f7c6f7a7b864bdedb0fe19b2b2e24c797d11cb5ab8667c0ef3634dd14d0a18094ca3c7cc
6
+ metadata.gz: 46707896e8d6255d9e9ff5092875465ac35e963211fb300fe7aed971fef854043beeac0e7507c4f15dfed459b90c24ba48a341b95b13124e082fce0ae7c4308d
7
+ data.tar.gz: a76fbe51174cf4b04bdb36de05099336c71983b966f8bb2ecda3fcb7cacf0e5d32cd607e556bde4ed486870cf0c2e6ccf9d03992e8a6a0f4a16633c2bc4fbbfc
@@ -0,0 +1,31 @@
1
+ module Proteus
2
+ module Commands
3
+ module Untaint
4
+ def self.included(thor_class)
5
+ thor_class.class_eval do
6
+
7
+ desc "untaint", "Untaints an existing resource"
8
+ long_desc <<-LONGDESC
9
+ Untaints an existing resource
10
+
11
+ --resource The resource to untaint
12
+ LONGDESC
13
+ option :resource, type: :string, aliases: "-r", required: true
14
+ def untaint
15
+ init(verbose: parent_options[:verbose])
16
+ confirm question: "Do you really want to run 'terraform untaint' on environment '#{environment}' in context '#{context}'?", color: :on_red, exit_code: 0 do
17
+
18
+ untaint_command = <<~UNTAINT_COMMAND
19
+ cd #{context_path(context)} && \
20
+ terraform untaint \
21
+ #{options[:resource]}
22
+ UNTAINT_COMMAND
23
+ syscall untaint_command.squeeze(' ')
24
+ end
25
+ end
26
+
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -7,6 +7,7 @@ require 'proteus/commands/output'
7
7
  require 'proteus/commands/plan'
8
8
  require 'proteus/commands/render'
9
9
  require 'proteus/commands/taint'
10
+ require 'proteus/commands/untaint'
10
11
 
11
12
  module Proteus
12
13
  class Common < Thor
@@ -1,5 +1,5 @@
1
1
  module Proteus
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
4
4
 
5
5
  if $0 == __FILE__
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dh-proteus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Albrecht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2021-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -160,6 +160,7 @@ files:
160
160
  - lib/proteus/commands/state/remove.rb
161
161
  - lib/proteus/commands/state/show.rb
162
162
  - lib/proteus/commands/taint.rb
163
+ - lib/proteus/commands/untaint.rb
163
164
  - lib/proteus/common.rb
164
165
  - lib/proteus/config/config.rb
165
166
  - lib/proteus/context_management/context.rb