Skip to content

Instantly share code, notes, and snippets.

@olenhad
Created April 5, 2013 14:39
Show Gist options
  • Save olenhad/5319776 to your computer and use it in GitHub Desktop.
Save olenhad/5319776 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'plist'
require 'yaml'
ARGV.each do |yaml_filename|
parts = yaml_filename.split(".")
filename = parts[0,parts.length-1].join(".")
plist_filename = "#{filename}.plist"
thing = YAML.load_file(yaml_filename)
Plist::Emit.save_plist(thing, plist_filename)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment