balena-cli/lib/cache/cache.coffee
2014-12-22 14:50:54 -04:00

8 lines
211 B
CoffeeScript

exports.generateCacheName = (id, connectionParams) ->
result = "#{id}-#{connectionParams.network}"
if connectionParams.wifiSsid?
result += "-#{connectionParams.wifiSsid}"
return "#{result}-#{Date.now()}"