Sha256: e2d1e104d6041d5c91885e628aa8faa5a7355141b14e98d6f9a035acd05100eb
Contents?: true
Size: 295 Bytes
Versions: 34
Compression:
Stored size: 295 Bytes
Contents
class ProconBypassMan::WriteDeviceIdCommand # @return [String] def self.execute path = "#{ProconBypassMan.root}/device_id" if(sid = File.read(path)) return sid end rescue Errno::ENOENT File.write(path, "m_#{SecureRandom.uuid}") return SecureRandom.uuid end end
Version data entries
34 entries across 34 versions & 1 rubygems