'process a template
template_name: the name of the template to process
create: whether to send to oc create after processing
params: the parameters for the template
template_data: the incoming template\'s data; instead of a file'

def _process(self, template_name, create=False, params=None, template_data=None):

    cmd = ['process']
    if template_data:
        cmd.extend(['-f', '-'])
    else:
        cmd.append(template_name)
    if params:
        param_str = ['{}={}'.format(key, str(value).replace("'", '"')) for (key, value) in params.items()]
        cmd.append('-v')
        cmd.extend(param_str)
    results = self.openshift_cmd(cmd, output=True, input_data=template_data)
    if ((results['returncode'] != 0) or (not create)):
        return results
    fname = Utils.create_tmpfile((template_name + '-'))
    yed = Yedit(fname, results['results'])
    yed.write()
    atexit.register(Utils.cleanup, [fname])
    return self.openshift_cmd(['create', '-f', fname])
