mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-01 11:36:41 +00:00
16 lines
249 B
CoffeeScript
16 lines
249 B
CoffeeScript
fsUtils = require('../fs-utils/fs-utils')
|
|
|
|
prefix = null
|
|
|
|
exports.get = ->
|
|
return prefix
|
|
|
|
exports.set = (newPrefix) ->
|
|
if not fsUtils.isValidPath(newPrefix)
|
|
throw new Error('Invalid path')
|
|
|
|
prefix = newPrefix
|
|
|
|
exports.clear = ->
|
|
prefix = null
|