Sha256: eb6fcfc5ef07246d750d100b367d0cabf8ad9e88ce14bc12111b4a8e5159a169
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
require 'integrity' require 'prowl' module Integrity class Notifier class Prowl < Notifier::Base attr_reader :config def self.to_haml File.read(File.dirname(__FILE__) + '/config.haml') end def deliver! return unless config[commit.status.to_s] == '1' if api_keys = config['api_keys'] api_keys.split(',').each do |key| prowl_params = {} prowl_params[:application] = commit.project.name prowl_params[:event] = short_message prowl_params[:description] = full_message ::Prowl.add(key, prowl_params) end end end def to_s 'Prowl' end end register Prowl end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
integrity-prowl-0.3.3 | lib/integrity/notifier/prowl.rb |