lib/integrity/notifier/notifyio.rb in integrity-notifyio-0.1.1 vs lib/integrity/notifier/notifyio.rb in integrity-notifyio-0.1.2
- old
+ new
@@ -1,14 +1,13 @@
-require 'integrity'
require File.dirname(__FILE__) + '/notifyio_client.rb'
module Integrity
class Notifier
class Notifyio < Notifier::Base
attr_reader :config
def self.to_haml
- File.read(File.dirname(__FILE__) + "/config.haml")
+ @haml ||= File.read(File.dirname(__FILE__) + "/config.haml")
end
def deliver!
NotifyioClient.post(config['email'], config['api_key'], short_message, full_message)
end