Class: Duplicati::Notification::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/duplicati/notification/base.rb

Direct Known Subclasses

Growl, Mail

Instance Method Summary collapse

Instance Method Details

#load_gem(name) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/duplicati/notification/base.rb', line 4

def load_gem(name)
  require name
  true
rescue LoadError
  Kernel.warn "#{name} gem is not installed, which is needed for #{self.class.name}!"
  false
end