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__)

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__)

Check if top-level `Libnotify` is defined
Check if top-level `Libnotify` is defined
