'run update'

def update(self, file_name, content, force=False, content_type='yaml'):

    if file_name:
        if (content_type == 'yaml'):
            data = yaml.load(open(file_name))
        elif (content_type == 'json'):
            data = json.loads(open(file_name).read())
        changes = []
        yed = Yedit(filename=file_name, content=data, separator=self.separator)
        for (key, value) in content.items():
            changes.append(yed.put(key, value))
        if any([(not change[0]) for change in changes]):
            return {'returncode': 0, 'updated': False}
        yed.write()
        atexit.register(Utils.cleanup, [file_name])
        return self._replace(file_name, force=force)
    return self._replace_content(self.kind, self.name, content, force=force, sep=self.separator)
