 
 
 module.exports = {
-  PROVIDERS, fetchStackTemplate, revive, reviveClient, checkCredential
+  PROVIDERS, fetchStackTemplate, revive, reviveClient, reviveCredential
 }

      # This is Koding only which doesn't need a valid credential
      # since the user session is enough for koding provider for now.

      if shouldPassCredential and provider isnt 'koding'

        if not credential?
          return callback new KodingError \
            "Credential is required.", "MissingCredential"

        checkCredential client, credential, (err, cred)=>

          if err then return callback err

          options.credential = cred
          fn.call this, client, options, callback

      else

        fn.call this, client, options, callback


  engineyard   : require './engineyard'


reviveCredential = (client, pubKey, callback)->

  [pubKey, callback] = [callback, pubKey]  unless callback?

  if not pubKey?
    return callback null

  JCredential = require './credential'
  JCredential.fetchByPublicKey client, pubKey, callback


reviveClient = (client, callback, revive = yes)->
