octopus-deploy
Version:
Node scripts to package up applications, create releases, and deploy with Octopus Deploy. This package leverages the Octopus Deploy REST API in order to deploy from Windows and non-Windows machines.
25 lines (19 loc) • 496 B
JavaScript
const client = require('../octopus-client')
const find = async idOrSlug => {
const url = `/projects/${idOrSlug}`
return client.get(url)
}
const getReleaseByProject = async id => {
const url = `/projects/${id}/releases`
return client.get(url)
}
const getReleaseByProjectAndVersion = async (id, version) => {
const url = `/projects/${id}/releases/${version}`
return client.get(url)
}
module.exports = {
find,
getReleaseByProject,
getReleaseByProjectAndVersion
}