#!/usr/bin/env ruby require 'trollop' $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require 'knife/undev' require 'knife/undev/converter' opts = Trollop::options do opt :file, "FileName", :type => :string opt :class, "Chef class", :type => :string, :default => 'role' end Knife::Undev::Converter.new(opts[:file], opts[:class]).to_yml