`hosts = targets.inject([]) { |hosts,target| hosts += get_resources(target) }`