require File.expand_path("../../env", __FILE__)
require "yaml"
require "feedcellar"

resources = YAML.load_file("resources.yaml")

command = Feedcellar::Command.new

resources.each do |resource|
  puts "Registering #{resource}"
  command.register(resource)
end

puts "Collecting..."
command.collect

require File.expand_path("../../env", __FILE__)
require "yaml"
require "feedcellar"

resources = YAML.load_file("resources.yaml")
puts "Resources: #{resources}"

command = Feedcellar::Command.new

puts "Registering..."
command.register(*resources)

puts "Collecting..."
command.collect

Reduce number of opening database
Reduce number of opening database
