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.
21 lines (15 loc) • 331 B
JavaScript
const client = require('../octopus-client')
const find = async id => {
const url = `/environments/${id}`
return client.get(url)
}
const findAll = async () => {
const url = '/environments/all'
const result = await client.get(url)
return result.valueOrDefault([])
}
module.exports = {
find,
findAll
}