4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/proteus/commands/untaint.rb', line 4
def self.included(thor_class)
thor_class.class_eval do
desc "untaint", "Untaints an existing resource"
long_desc " Untaints an existing resource\n\n --resource The resource to untaint\n LONGDESC\n option :resource, type: :string, aliases: \"-r\", required: true\n def untaint\n init(verbose: parent_options[:verbose])\n confirm question: \"Do you really want to run 'terraform untaint' on environment '\#{environment}' in context '\#{context}'?\", color: :on_red, exit_code: 0 do\n\n untaint_command = <<~UNTAINT_COMMAND\n cd \#{context_path(context)} && \\\n terraform untaint \\\n \#{options[:resource]}\n UNTAINT_COMMAND\n syscall untaint_command.squeeze(' ')\n end\n end\n\n end\nend\n"
|