mirror of
https://gh.wpcy.net/https://github.com/Chassis/puppet-wp.git
synced 2026-04-27 16:38:26 +08:00
14 lines
299 B
Puppet
14 lines
299 B
Puppet
# A class for WP-CLI rewrites.
|
|
define wp::rewrite (
|
|
$location,
|
|
$structure = $title,
|
|
$user = $::wp::user,
|
|
) {
|
|
include wp::cli
|
|
|
|
wp::command { "${location} rewrite structure '${structure}'":
|
|
location => $location,
|
|
command => "rewrite structure '${structure}'",
|
|
user => $user,
|
|
}
|
|
}
|