'Write a file containing the version number for each microservice. Used
by build_release.py for rpm builds.'

def write_rpm_version_files(self):

    self.determine_and_tag_halyard()
    for comp in dict((self.__component_versions.items() + self.__halyard_version.items())):
        if (comp == 'spinnaker'):
            pass
        gradle_version = self.__version_from_tag(comp)
        version_file = '{0}-rpm-version.txt'.format(comp)
        with open(version_file, 'w') as ver:
            ver.write(gradle_version)
