{:uriI"file:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/notifications.js.coffee.erb?type=application/javascript&pipeline=self&id=f035188dcff58d34535882e54e42677b223798578ad00a5bf8e58fb01b856d33:ET:load_pathI"I/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts;T: filenameI"j/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/notifications.js.coffee.erb;T: nameI"task/notifications;T:logical_pathI"task/notifications.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; this.Notifications = (function() { var IMAGES; IMAGES = { success: '/assets/deploy_success.jpg', failed: '/assets/deploy_failed.jpg', error: '/assets/deploy_error.jpg' }; Notifications.init = function(outputStream, task) { return outputStream.addEventListener('status', new this(task).statusUpdated); }; function Notifications(arg) { this.repo = arg.repo, this.description = arg.description; this.statusUpdated = bind(this.statusUpdated, this); } Notifications.prototype.statusUpdated = function(status) { if (!(status in IMAGES)) { return; } if ($.notifyCheck() !== $.NOTIFY_ALLOWED) { return; } return $.notify(IMAGES[status], this.repo, this.message(status)); }; Notifications.prototype.message = function(status) { var deployShortSha; deployShortSha = $('.short-sha').text(); switch (status) { case 'success': return "Your " + this.description + " was successful!"; case 'failed': return "Your " + this.description + " failed."; case 'error': return "Error during " + this.description + "."; default: return "Your " + this.description + " ended with status: " + status; } }; return Notifications; })(); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{I"environment-version;TTI"environment-paths;TTI"oprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee,.erb&pipeline=self;TTI"xfile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/task/notifications.js.coffee.erb;TTI"$file-digest://app/assets/images;TTI"3file-digest://app/assets/images/deploy_success;TTI")file-digest://app/assets/javascripts;TTI"8file-digest://app/assets/javascripts/deploy_success;TTI")file-digest://app/assets/stylesheets;TTI"8file-digest://app/assets/stylesheets/deploy_success;TTI"Rfile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images;TTI"afile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_success;TTI"efile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_success.jpg;TTI"4processors:type=image/jpeg&file_type=image/jpeg;TTI"2file-digest://app/assets/images/deploy_failed;TTI"7file-digest://app/assets/javascripts/deploy_failed;TTI"7file-digest://app/assets/stylesheets/deploy_failed;TTI"`file-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_failed;TTI"dfile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_failed.jpg;TTI"1file-digest://app/assets/images/deploy_error;TTI"6file-digest://app/assets/javascripts/deploy_error;TTI"6file-digest://app/assets/stylesheets/deploy_error;TTI"_file-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_error;TTI"cfile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/images/deploy_error.jpg;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%a6V΍7TδM z : lengthi:dependencies_digest"%icí'QFP}ȕn:idI"Ef035188dcff58d34535882e54e42677b223798578ad00a5bf8e58fb01b856d33;F: mtimel+lV