File: os.coffee
Defined in: | lib/resin/os |
Method Summary
-
~
(String)
generateCacheName(id, connectionParams)
Generate os cache name
It generates an unique name for a certain instance of the os with id and connection params embedded in the filename.
Method Details
~
(String)
generateCacheName(id, connectionParams)
Note:
For security reasons, the wifiSsid is omitted from the filename
Note:
The original filename extension (*.zip in this case) is lost in the renaming process
Generate os cache name
It generates an unique name for a certain instance of the os with id and connection params embedded in the filename.
result = resin.os.generateCacheName(51, { network: 'ethernet' })
console.log(result)
# 51-ethernet-1418040928724
result = resin.os.generateCacheName(51, { network: 'wifi' wifiKey: 'MyWifi' wifiSsid: 'secret'
})
console.log(result)
# 51-wifi-MyWifi-1418040928724