UNPKG

@beelab/deployer

Version:

Deployer tools

13 lines (10 loc) 398 B
const { exec } = require('./../providers/ssh'); const { get } = require('./../services/configuration'); module.exports = { gitClone() { const releasePath = get('RELEASE_PATH'); const repository = get('GIT_REPOSITORY'); const branch = get('GIT_REFERENCE', 'master'); return exec(`git clone --depth 1 --branch ${branch} ${repository} .`, releasePath); }, };