---
name: "Jifty::Plugin::Config::Action::AddConfig"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Plugin::Config::Action::AddConfig"
---

# Jifty::Plugin::Config::Action::AddConfig(3pm)

add a configuration entry

## NAME

Jifty::Plugin::Config::Action::AddConfig - add a configuration entry

## METHODS

### contextualize

Takes a context string (slash-separated list of keys) and returns a pair of hash-references: the "top" of the config (for merging) and the "current pointer" into the "top" hashref for where the new config entry should go.

### write\_new\_config

Merges the existing config file at `"target_file"` with the new entry and updates `"target_file"`.

### take\_action

Sets `"field = value"` at `"context"` in `"target_file"`.
