Added WP-CLI commands
parent
3c70bfc4a3
commit
6a3c181656
21
mbadmin.jps
21
mbadmin.jps
|
@ -8,6 +8,12 @@ targetNodes:
|
||||||
nodeGroup: cp
|
nodeGroup: cp
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
|
- confirmText: Are you sure you want to execute this WP-CLI command?
|
||||||
|
loadingText: Executing WP-CLI command...
|
||||||
|
caption: Execute WP-CLI Command
|
||||||
|
action: dynamic_wp_cli
|
||||||
|
settings: wpCliConfig
|
||||||
|
successText: "${response.out}"
|
||||||
- confirmText: Are you sure you want to sync directories using rsync?
|
- confirmText: Are you sure you want to sync directories using rsync?
|
||||||
loadingText: Syncing directories...
|
loadingText: Syncing directories...
|
||||||
caption: Sync Directories
|
caption: Sync Directories
|
||||||
|
@ -89,6 +95,13 @@ menu:
|
||||||
successText: "${response.out}"
|
successText: "${response.out}"
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
wpCliConfig:
|
||||||
|
submitUnchanged: true
|
||||||
|
fields:
|
||||||
|
- name: wp_cli_command
|
||||||
|
type: text
|
||||||
|
caption: WP-CLI Command (without 'wp' prefix)
|
||||||
|
default: "help"
|
||||||
rsyncConfig:
|
rsyncConfig:
|
||||||
submitUnchanged: true
|
submitUnchanged: true
|
||||||
fields:
|
fields:
|
||||||
|
@ -175,6 +188,14 @@ settings:
|
||||||
default: "7200"
|
default: "7200"
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
|
dynamic_wp_cli:
|
||||||
|
- cmd[cp]:
|
||||||
|
commands:
|
||||||
|
- cd /var/www/webroot/ROOT/
|
||||||
|
- wp ${settings.wp_cli_command}
|
||||||
|
- return:
|
||||||
|
type: info
|
||||||
|
message: "${response.out}"
|
||||||
rsync_directories:
|
rsync_directories:
|
||||||
- cmd[cp]:
|
- cmd[cp]:
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in New Issue