code: func (t *TemplateResource) process() error {
  	if err := t.setFileMode(); err != nil {
  		return err
  	}
  	if err := t.setVars(); err != nil {
  		return err
  	}
  	if err := t.createStageFile(); err != nil {
  		return err
  	}
  	if err := t.sync(); err != nil {
  		return err
  	}
  	return nil
  }
docs: // process is a convenience function that wraps calls to the three main tasks
  // required to keep local configuration files in sync. First we gather vars
  // from the store, then we stage a candidate configuration file, and finally sync
  // things up.
  // It returns an error if any.