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