lib/bolt/plugin.rb
# Calling by_name or get_hook will load any module based plugin automatically
Calling by_name or get_hook will load any module based plugin automatically
Calling by_name or get_hook will load any module based plugin automatically
def by_name(plugin_name)
      if known_plugin?(plugin_name)
        if @plugins.include?(plugin_name)
          @plugins[plugin_name]
        elsif !@load_plugins
          raise PluginError::LoadingDisabled, plugin_name
        elsif RUBY_PLUGINS.include?(plugin_name)
          add_ruby_plugin(plugin_name)
        else
          add_module_plugin(plugin_name)
        end
      end
    end
def by_name ( plugin_name ) if known_plugin? ( plugin_name ) if @plugins . include? ( plugin_name ) @plugins [ plugin_name ] elsif ! @load_plugins raise PluginError :: LoadingDisabled , plugin_name elsif RUBY_PLUGINS . include? ( plugin_name ) add_ruby_plugin ( plugin_name ) else add_module_plugin ( plugin_name ) end end end
Calling by_name or get_hook will load any module based plugin automatically
Calling by_name or get_hook will load any module based plugin automatically
plugin_name
<not_specific>