'Helper function to determine the platform spinnaker is hosted on.
This is used while figuring out how to connect to the instance.'

@classmethod
def __determine_host_platform(cls, bindings):

    host_platform = bindings.get('HOST_PLATFORM', None)
    if (not host_platform):
        if bindings['GCE_PROJECT']:
            host_platform = 'gce'
        elif bindings['NATIVE_HOSTNAME']:
            host_platform = 'native'
        else:
            bindings['NATIVE_HOSTNAME'] = 'localhost'
            logging.getLogger(__name__).info('Assuming    --native_hostname=localhost')
            host_platform = 'native'
    return host_platform
