lib/yle_tf/action/write_terraformrc_defaults.rb
def call(env)
        if rc_file.exist?
          Logger.debug("Terraform configuration file '#{RC_PATH}' already exists")
          if !existing_keys.include?('plugin_cache_dir')
            Logger.warn("'plugin_cache_dir' not configured in '#{RC_PATH}'")
          end
        else
          Logger.debug("Writing default configuration to '#{RC_PATH}'")
          write_default_config
        end

        @app.call(env)
      end
# Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
def call(env)
        if rc_file.exist?
          Logger.debug("Terraform configuration file '#{RC_PATH}' already exists")
          if !existing_keys.include?('plugin_cache_dir')
            Logger.warn("'plugin_cache_dir' not configured in '#{RC_PATH}'")
          end
        else
          Logger.debug("Writing default configuration to '#{RC_PATH}'")
          write_default_config
        end
        @app.call(env)
      end
def call ( env ) if rc_file . exist? Logger . debug ( "Terraform configuration file '#{RC_PATH}' already exists" ) if ! existing_keys . include? ( 'plugin_cache_dir' ) Logger . warn ( "'plugin_cache_dir' not configured in '#{RC_PATH}'" ) end else Logger . debug ( "Writing default configuration to '#{RC_PATH}'" ) write_default_config end @app . call ( env ) end
Path of the Terraform CLI configuration file
Path of the Terraform CLI configuration file
env