       # { permission: 'update provisioner' }
     ]
 
-    success: (client, accessLevel, callback)->
+    success: (client, accessLevel, callback) ->
 
       @update $set: { accessLevel }, callback
 

      meta            : require 'bongo/bundles/meta'


  checkContent = (type, content)->

    contentSum = "%SUM%"

    if not type?
      err = "Type missing."
    else if not content?
      err = "Content missing."
    else
      switch type
        when "shell"
          unless content.script?
            err = "Type shell requires a `script`"
          else

            contentSum = crypto.createHash 'sha1'


      type            :
        type          : String
        enum          : ['Wrong type specified!', [

          # Provisioner types which supported by packer.io and kloud
          #
          'shell'     # Shell script

        ]]

        default       : -> 'shell'

      contentSum      : String

      content         :
        type          : Object
        default       : -> {}

      accessLevel     :
        type          : String
        enum          : ['Wrong access level specified!',
          ['private', 'group', 'public']
        ]
        default       : 'private'

      originId        :
        type          : ObjectId
