lib/yle_tf/action/write_terraformrc_defaults.rb
# Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
def existing_keys
        @existing_keys ||= [].tap do |keys|
          rc_file.readlines.each do |line|
            keys << Regexp.last_match(1) if line =~ /^(.+?)[ \t]*=/
          end
        end
      end
def existing_keys @existing_keys ||= [ ] . tap do | keys | rc_file . readlines . each do | line | keys << Regexp . last_match ( 1 ) if line =~ / ^(.+?)[  \t ]*= / end end end
Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
# The matcher is a bit naive, but enough for out use