-kd                  = require 'kd'
+kd                   = require 'kd'
 
-JView               = require 'app/jview'
-curryIn             = require 'app/util/curryIn'
-showError           = require 'app/util/showError'
+JView                = require 'app/jview'
+curryIn              = require 'app/util/curryIn'
+showError            = require 'app/util/showError'
 
-{yamlToJson}        = require './yamlutils'
-StackEditorView     = require './stackeditorview'
-updateStackTemplate = require './updatestacktemplate'
-CredentialStatusView= require './credentialstatusview'
+{yamlToJson}         = require './yamlutils'
+OutputView           = require './outputview'
+StackEditorView      = require './stackeditorview'
+updateStackTemplate  = require './updatestacktemplate'
+parseTerraformOutput = require './parseterraformoutput'
+CredentialStatusView = require './credentialstatusview'
 
 
 module.exports = class DefineStackView extends kd.View

      title          : 'Save & Test'
      cssClass       : 'solid compact green nav next'
      disabled       : yes
      callback       : =>
        @saveTemplate (err, stackTemplate) =>
          return  if showError err
          @emit 'Completed', stackTemplate

    @credentialStatus.on 'StatusChanged', (status) =>
      if status is 'verified'

      <div class='text header'>Create new Stack</div>
      {{> @inputTitle}}
      {{> @editorView}}
      {{> @outputView}}
      {{> @cancelButton}}
      {{> @setAsDefaultButton}}
      {{> @saveButton}}
    """