Skip to content

Instantly share code, notes, and snippets.

@mxey
Created September 18, 2014 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxey/adda6956979326df1218 to your computer and use it in GitHub Desktop.
Save mxey/adda6956979326df1218 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'cfpropertylist'
plist = CFPropertyList::List.new(file: ARGV[0])
service_definition = CFPropertyList.native_types(plist.value)
puts service_definition['ProgramArguments'].map { |x| '"' + x + '"' }.join(' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment