lib/rundock/runner.rb in rundock-0.2.5 vs lib/rundock/runner.rb in rundock-0.2.6
- old
+ new
@@ -53,13 +53,20 @@
@scenario = Rundock::Builder::ScenarioBuilder.new(options, nil).build
end
end
def load_plugins
+ # load from current lib dir(for development)
+ Dir.glob('./lib/rundock/plugin/**/*.rb').each do |f|
+ require f.gsub(/.rb$/, '')
+ end
+
+ # load from local project
Dir.glob("#{File.expand_path(File.dirname(__FILE__))}/plugin/**/*.rb").each do |f|
require f.gsub(/.rb$/, '')
end
+ # load from installed gems
gems = []
Gem::Specification.each do |gem|
gems << gem.name
end
gems.uniq!