Sha256: d9727a6c58d9381ab077ff55b9c191c9653f721351a394ed18569da531c8f220
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
require 'cfpropertylist' require 'deep_merge' require 'yaml' require_relative 'plister/version' require_relative 'plister/plist' require_relative 'plister/preferences' module Plister class << self def preferences(path = nil) Plister::Preferences.new(path) end def user @user ||= `logname`.strip end def uuid @uuid ||= begin uuid = `ioreg -rd1 -c IOPlatformExpertDevice` matches = uuid.match(/"IOPlatformUUID" = "([0-9A-F-]{36})"/) matches[1] if matches end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plister-0.1.1 | lib/plister.rb |