mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 08:51:04 +00:00
16 lines
371 B
CoffeeScript
16 lines
371 B
CoffeeScript
Promise = require('bluebird')
|
|
canvas = require('./_canvas')
|
|
|
|
exports.getAll = (applicationId) ->
|
|
return canvas.get
|
|
resource: 'environment_variable'
|
|
options:
|
|
filter:
|
|
application: applicationId
|
|
orderby: 'name asc'
|
|
|
|
.then (environmentVariables) =>
|
|
if not environmentVariables?
|
|
return Promise.reject(new Error('Not found'))
|
|
return environmentVariables
|