Sha256: 3f030e59b9f8a7816f9d0826ef3c4e074a59880cc3340ab92055738acd6e14d5

Contents?: true

Size: 254 Bytes

Versions: 35

Compression:

Stored size: 254 Bytes

Contents

module Shenzhen::PlistBuddy
  class << self
    def print(file, key)
      output = `/usr/libexec/PlistBuddy -c "Print :#{key}" "#{file}" 2> /dev/null`

      !output || output.empty? || /Does Not Exist/ === output ? nil : output.strip
    end
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
shenzhen-0.10.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.9.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.8.2 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.7.1 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.7.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.6.1 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.6.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.5.4 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.5.3 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.5.2 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.5.1 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.5.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.4.0 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.3.1 ./lib/shenzhen/plistbuddy.rb
shenzhen-0.3.0 ./lib/shenzhen/plistbuddy.rb