/** * Run the deployment * * @TODO Ability to deploy only specific Pods. * * @since 0.1.0 * * @param $remote_url */ function pods_deploy($params) { $params['remote_url'] = pods_v('remote_url', $params); $params['public_key'] = pods_v('public_key', $params); $params['private_key'] = pods_v('private_key', $params); return Pods_Deploy::deploy($params); }
/** * Run the deployment * * @TODO Ability to deploy only specific Pods. * * @since 0.1.0 * * @param $remote_url */ function pods_deploy($remote_url = false, $private_key, $public_key) { if (!$remote_url) { $remote_url = get_option('pods_deploy_remote_url'); } if (!$remote_url) { if (is_admin()) { //@todo admin nag } return; } return Pods_Deploy::deploy($remote_url, $private_key, $public_key); }