lib/3scale_toolbox.rb in 3scale_toolbox-0.4.0 vs lib/3scale_toolbox.rb in 3scale_toolbox-0.5.0
- old
+ new
@@ -1,5 +1,9 @@
-require '3scale_toolbox/version'
-
module ThreeScaleToolbox
- # Your code goes here...
+ def self.load_plugins
+ plugin_paths.each { |plugin_path| require plugin_path }
+ end
+
+ def self.plugin_paths
+ Gem.find_files('3scale_toolbox_plugin')
+ end
end