lib/pharos/terraform/base_command.rb
# Returns common options for both apply and destroy commands.
# @return [Array<String>]
Returns common options for both apply and destroy commands.
Returns common options for both apply and destroy commands .
def common_tf_options
        opts = []
        opts << "-auto-approve" if yes?
        opts << "-state #{state}" if state
        opts << "-var-file #{var_file}" if var_file
        opts += var_list.map { |var| "-var #{var}" } if var_list
        opts
      end
def common_tf_options opts = [ ] opts << "-auto-approve" if yes? opts << "-state #{state}" if state opts << "-var-file #{var_file}" if var_file opts += var_list . map { | var | "-var #{var}" } if var_list opts end
Returns common options for both apply and destroy commands.
Returns common options for both apply and destroy commands .
None
Array<String>