Sha256: edc27463d1a0f61fcbf7ea9d1ca9054aa1002b7e8f8bec714ab079528602fe3c
Contents?: true
Size: 274 Bytes
Versions: 1
Compression:
Stored size: 274 Bytes
Contents
class ProconBypassMan::WriteDeviceIdCommand 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
procon_bypass_man-0.1.12 | lib/procon_bypass_man/commands/write_device_id_command.rb |