balena-cli/lib/config.coffee
2014-11-18 11:37:29 -04:00

20 lines
442 B
CoffeeScript

_ = require('lodash')
url = require('url')
path = require('path')
config =
# TODO: Should be configurable
remoteUrl: 'https://staging.resin.io'
apiPrefix: '/ewa/'
dataPrefix: path.join(process.env.HOME, '.resin')
config.urls =
signup: '/signup'
# Append config.remoteUrl before every url
config.urls = _.object _.map config.urls, (value, key, object) ->
return [ key, url.resolve(config.remoteUrl, value) ]
module.exports = config