Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Plist4r - Read, write and edit plists in ruby

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin Housekeeping July 20, 2010
Octocat-spinner-32 ext
Octocat-spinner-32 features Initial commit to plist4r. March 08, 2010
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .nojekyll
Octocat-spinner-32 .yardopts
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc Documentation July 20, 2010
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 plist4r.gemspec
README.rdoc

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}

Copyright

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

Something went wrong with that request. Please try again.