Module: DepsGrapher::PluginDSL

Included in:
Configuration
Defined in:
lib/deps_grapher/plugin_dsl.rb

Instance Method Summary collapse

Instance Method Details

#with_plugin(&block) ⇒ Object



5
6
7
8
9
10
# File 'lib/deps_grapher/plugin_dsl.rb', line 5

def with_plugin(&block)
  plugin_dir = DepsGrapher.config.plugin_dir
  return if plugin_dir.blank? || !File.directory?(plugin_dir)

  block.call plugin_dir
end