 
         default       : -> "shell"
 
+      contentSum      : String
+
       content         :
         type          : Object
         default       : -> { }

      switch type
        when "shell"
          unless content.script?
          then err = "Type 'shell' requires a 'script'"
          else content = { script: content.script }
        else
          err = "Type is not supported for now."

    err = new KodingError err  if err?
    return [err, content]


  checkData = (delegate, data, callback)->

    {type, content, slug, label} = data

    [err, content] = checkContent type, content
    if err? then return callback err

    slug ?= (require 'hat') 32

  @getName = -> 'JProvisioner'

  checkContent = (type, content)->

    contentSum = "%SUM%"

    if not type?
      err = "Type missing."
