text: /* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
   * Unauthorized copying of this file, via any medium is strictly prohibited
   * Proprietary and confidential
   * Written by Relevance UI Team,
   * Aug 2015
   */
  
  (function(angular){
  	"use strict";
  	angular.module('workzone.blueprint')
  		.controller('blueprintInfoCtrl', ['$scope', '$modalInstance', 'items', 'workzoneServices', function($scope, $modalInstance, items, workzoneServices) {
  			var blueprintName;
  			switch (items.templateType) {
  				case "chef":
  					blueprintName = 'Software Stack';
  					break;
  				case "ami":
  					blueprintName = 'OSImage';
  					break;
  				case "cft":
  					blueprintName = 'cloudFormation';
  					break;
  				case "docker":
  					blueprintName = 'Docker';
  					break;
  				case "arm":
  					blueprintName = 'Azure ARM';
  				break;
  			}
  			
  			workzoneServices.blueprintInfo(items._id).then(function(response) {
  				$scope.blueprintInfo = response.data;
  			},
  			function(error) {
  				$scope.BPInfoerrorMessage = error.data.errMessage;
  			});
  
  			angular.extend($scope, {
  				cancel: function() {
  					$modalInstance.dismiss('cancel');
  				}
  			});
  		}
  	]);
  })(angular);