Sha256: e6b47f4d74a092e1a547afd55caf43d70213838fb626ea0ba51d3d2581473003
Contents?: true
Size: 855 Bytes
Versions: 76
Compression:
Stored size: 855 Bytes
Contents
class @Notifications IMAGES = success: '<%= image_path "deploy_success.jpg" %>' failed: '<%= image_path "deploy_failed.jpg" %>' error: '<%= image_path "deploy_error.jpg" %>' @init: (outputStream, task) -> outputStream.addEventListener('status', new this(task).statusUpdated) constructor: ({@repo, @description}) -> statusUpdated: (status) => return unless status of IMAGES return unless $.notifyCheck() == $.NOTIFY_ALLOWED $.notify(IMAGES[status], @repo, @message(status)) message: (status) -> deployShortSha = $('.short-sha').text() switch status when 'success' "Your #{@description} was successful!" when 'failed' "Your #{@description} failed." when 'error' "Error during #{@description}." else "Your #{@description} ended with status: #{status}"
Version data entries
76 entries across 76 versions & 1 rubygems