https://github.com/dreamcat4/plist4r
Plist4r - Read, write and edit plists in ruby
https://github.com/dreamcat4/plist4r
Last synced: about 2 months ago
JSON representation
Plist4r - Read, write and edit plists in ruby
- Host: GitHub
- URL: https://github.com/dreamcat4/plist4r
- Owner: dreamcat4
- License: other
- Created: 2010-03-08T14:05:00.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T22:29:54.000Z (over 2 years ago)
- Last Synced: 2024-04-27T08:57:33.305Z (about 1 year ago)
- Language: Ruby
- Homepage: http://dreamcat4.github.com/plist4r
- Size: 1.2 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= plist4r
Plist4r is a friendly rubygem / ruby lib for handling plist files.
* Documentation at http://dreamcat4.github.com/plist4r
== 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
# => :launchdp.file_format
# => :xmlp.edit do
program_arguments ["/usr/local/bin/myservice"]
watch_paths ["/var/db/myservice"]
endp.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}== Copyright
Plist4r is Copyright (c) 2009 under MIT License. See {file:LICENSE} for details.