# File lib/puppet/provider/mcx/mcxcontent.rb, line 96 96: def mcximport(ds_type, ds_name, val) 97: ds_t = TypeMap[ds_type] 98: ds_n = ds_name.to_s 99: ds_path = "/Local/Default/#{ds_t}/#{ds_name}" 100: 101: tmp = Tempfile.new('puppet_mcx') 102: begin 103: tmp << val 104: tmp.flush 105: dscl 'localhost', '-mcximport', ds_path, tmp.path 106: ensure 107: tmp.close 108: tmp.unlink 109: end 110: end