Project

plist4r

0.0
No release in over 3 years
Low commit activity in last 3 years
Plist4r is for editing Plist files in an easy-to-use, fast, and reliabile way. A comprehensive and fully featured Ruby library. Xml and Binary file formats are supported, with backends for Linux and Mac.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9
>= 0

Runtime

 Project Readme

plist4r¶ ↑

Plist4r is a friendly rubygem / ruby lib for handling plist files.

Installation¶ ↑

gem install plist4r

Quick Start¶ ↑

require 'plist4r'

Plist4r::Config.default_path = "/Library/LaunchDaemons"
filename = "com.github.myservice.plist"
p = Plist4r.open(filename)

p.plist_type
# => :launchd

p.file_format
# => :xml

p.edit do
  program_arguments ["/usr/local/bin/myservice"]
  watch_paths ["/var/db/myservice"]
end

p.save

Overview¶ ↑

  • For convenience we invoke {Plist4r.open} and {Plist4r.new} to initially create a plist object.

  • And use {Plist4r::Config} to set any global configuration defaults.

  • See {file:Backends} for the backends performance data.

Examples

  • See {file:InfoPlistExample}

  • See {file:LaunchdPlistExample}

Recommended reading

  • See {file:EditingPlistFiles}

  • See {file:PlistKeyNames}

  • Please see the inline source-code documentation on {Plist4r::Plist}

How to contribute

  • {file:DeveloperGuide}

Plist4r is Copyright © 2009 under MIT License. See {file:LICENSE} for details.