Module: Duty::Plugins

Defined in:
lib/duty/plugins.rb

Defined Under Namespace

Classes: List, Plugin

Class Method Summary collapse

Class Method Details

.load(config) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/duty/plugins.rb', line 6

def self.load(config)
  Duty::Plugins::List.new.tap do |list|
    config["tasks"].each do |namespace, plugin_entry_point|
      list << Plugin.new(namespace, plugin_entry_point)
    end
  end
end