'create a temporary file and then call oc create on it'

def _create_from_content(self, rname, content):

    fname = Utils.create_tmpfile((rname + '-'))
    yed = Yedit(fname, content=content)
    yed.write()
    atexit.register(Utils.cleanup, [fname])
    return self._create(fname)
