lib/rundock/runner.rb in rundock-1.0.6 vs lib/rundock/runner.rb in rundock-1.0.7

- old
+ new

@@ -2,11 +2,11 @@ require 'open-uri' module Rundock class Runner ScenarioNotFoundError = Class.new(StandardError) - RUNDOCK_PLUGINS = %w(operation hook) + RUNDOCK_PLUGINS = %w[operation hook] class << self def run(options) Logger.debug 'Starting Rundock:' @@ -59,10 +59,10 @@ 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| + Dir.glob("#{__dir__}/plugin/**/*.rb").each do |f| require f.gsub(/.rb$/, '') end # load from installed gems gems = []