@aldenquimby/flywaydb-cli
Version:
Install latest flywaydb-cli as a node module
20 lines (18 loc) • 414 B
JavaScript
import {
getReleaseSource,
downloadFlywaySource,
extractToLib,
copyToBin,
cleanupDirs
} from "./utils";
getReleaseSource()
.then(downloadFlywaySource)
.then(extractToLib)
.then(copyToBin)
.then(cleanupDirs)
.then(() => console.log("Flyway installation complete"))
.catch(function(reason) {
// Handle failed request...
console.error(`error --> ${reason}`);
process.exit(1);
});