dh-proteus 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proteus/commands/untaint.rb +31 -0
- data/lib/proteus/common.rb +1 -0
- data/lib/proteus/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 525a435f4b60584612eb0cc1a07e2514551c269d7fa88116a86dceba62de1ee7
|
4
|
+
data.tar.gz: 8a374ee6e980024a09344ecf9be84cea570ce2c988b4869906d512ee0f999722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/proteus/common.rb
CHANGED
data/lib/proteus/version.rb
CHANGED
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.
|
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-
|
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
|