lib/maitredee/cli/runner.rb in maitredee-0.8.5 vs lib/maitredee/cli/runner.rb in maitredee-0.9.0
- old
+ new
@@ -48,9 +48,14 @@
if (result = YAML.load(ERB.new(IO.read(path)).result))
file = Tempfile.new(['maitredee-to-shoryuken', '.yml'])
result.deep_symbolize_keys!
+
+ if result[:rails]
+ load_rails
+ end
+
if result[:subscribers]
subscribers = result.delete(:subscribers)
result[:queues] = subscribers.map(&:constantize).map(&:queue_resource_name)
end