19 lines
336 B
Ruby
Raw Normal View History

require 'capistrano/send'
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__)