UNPKG

@lando/wordpress

Version:

A Lando plugin that provides a tight integration with WordPress.

23 lines (20 loc) 505 B
'use strict'; // Modules const _ = require('lodash'); /* * Helper to get a phar download and setupcommand * @TODO: clean this mess up */ module.exports = (url, src, dest, check = 'true') => { // Arrayify the check if needed if (_.isString(check)) check = [check]; // Phar install command const pharInstall = [ ['curl', url, '-LsS', '-o', src], ['chmod', '+x', src], ['mv', src, dest], check, ]; // Return return _.map(pharInstall, cmd => cmd.join(' ')).join(' && '); };