   @actions      =
     REGISTER    : 'register'
     DEREGISTER  : 'deregister'
-

    changes.emit eventName, kite
    return

  createKiteNotFoundError: (query) ->
    { username, environment, name, version, region, hostname, id } = query
    new KiteError "No kite found! query: #{
      username    ? '' }/#{
      environment ? '' }/#{
      name        ? '' }/#{
      version     ? '' }/#{
      region      ? '' }/#{
      hostname    ? '' }/#{
      id          ? '' }"

  connect: -> @kite.connect()



module.exports = class Kontrol extends Emitter

  @version = '1.0.0'

  @Kite = Kite

