balena-cli/lib/actions/preferences.coffee

10 lines
310 B
CoffeeScript
Raw Normal View History

2014-11-19 12:59:17 +00:00
open = require('open')
2014-12-01 14:11:00 +00:00
url = require('url')
2015-01-08 12:04:37 +00:00
resin = require('resin-sdk')
permissions = require('../permissions/permissions')
2014-11-19 12:59:17 +00:00
exports.preferences = permissions.user ->
2014-12-05 14:53:59 +00:00
preferencesUrl = resin.settings.get('urls.preferences')
absUrl = url.resolve(resin.settings.get('remoteUrl'), preferencesUrl)
2014-12-01 14:11:00 +00:00
open(absUrl)