-# coffeelint: disable=cyclomatic_complexity
-# FIXME ~GG ^^
-
 { Base, secure, signature } = require 'bongo'
 
 KONFIG       = require 'koding-config-manager'

    provider.remove client, options, callback


  @generateStackFromTemplate = (data, options, callback) ->

    { account, user, group, template, client } = data


          # This is optional, since for koding group for example
          # we don't want to add our admins into users machines ~ GG
          if options.addGroupAdminToMachines
            addGroupAdmin group, machineInfo, (_machine) -> create _machine
          else
            create machineInfo

      async.series queue, -> callback null, { stack, results }

