2015-05-26 15:01:10 +02:00
|
|
|
require 'capistrano/send'
|
|
|
|
|
2015-05-22 16:57:01 +02:00
|
|
|
begin
|
|
|
|
require 'libnotify'
|
|
|
|
rescue LoadError
|
|
|
|
end
|
|
|
|
|
|
|
|
module Capistrano
|
|
|
|
module Send
|
|
|
|
module Libnotify
|
|
|
|
def self.supported?
|
2015-05-26 09:42:34 +02:00
|
|
|
defined?(::Libnotify) && ::Libnotify::API.instance_methods.include?(:notify_init)
|
2015-05-22 16:57:01 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-05-22 11:53:26 +02:00
|
|
|
load File.expand_path('../../tasks/libnotify.cap', __FILE__)
|