Sha256: 3fbf45eb6559fd0ebeea739b43a88626a1fd5ec32dd19c4e5a24ae433251e04f

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

# If the notifiers directory does not exist, create it.
FileUtils.mkdir_p(Mack::Paths.notifiers)

# Require all notifiers
Mack.search_path(:app).each do |path|
  Dir.glob(File.join(path, 'notifiers', "**/*.rb")).each do |notifier|
    require File.expand_path(notifier)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mack-notifier-0.8.1 lib/mack-notifier/loader.rb
mack-notifier-0.8.2 lib/mack-notifier/loader.rb
mack-notifier-0.8.3 lib/mack-notifier/loader.rb
mack-notifier-0.8.3.1 lib/mack-notifier/loader.rb