17 lines
305 B
Ruby
Raw Normal View History

begin
require 'libnotify'
rescue LoadError
end
module Capistrano
module Send
module Libnotify
def self.supported?
defined?(Libnotify) && Libnotify::API.instance_methods.include?(:notify_init)
end
end
end
end
load File.expand_path('../../tasks/libnotify.cap', __FILE__)