Sha256: e719d2ff1b44c44699066351715ca1b4e3d78e710a728b95608a1fa17bdf1bdc
Contents?: true
Size: 652 Bytes
Versions: 3
Compression:
Stored size: 652 Bytes
Contents
module Shuttle module WordpressCli CLI_GIT = 'https://github.com/wp-cli/wp-cli.git' CLI_PATH = '/usr/local/share/wp-cli' # Check if CLI is installed # @return [Boolean] def cli_installed? ssh.run("which wp").success? end # Install wordpress CLI # @return [Boolean] def cli_install log "Installing wordpress CLI" ssh.run("sudo git clone --recursive --quiet #{CLI_GIT} #{CLI_PATH}") ssh.run("cd #{CLI_PATH} && sudo utils/dev-build") if cli_installed? log "Wordpress CLI installed" else error "Unable to install wordpress CLI" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems