How to form cookie dough into rolls?
A sausage stuffer, perhaps? 

Your standard food mill attachment type more typically seen in a home kitchen:



Unless you're seeing some product I've never met, I would not call that stuff "rolled in tubes" - I'd call it a tube (or log) of dough, and I expect the filling process is VERY like a (large, automated) sausage stuffer, and involves no rolling at all. 



In making refrigerator cookies, one simply makes a log out of the dough, wraps it, and places it in the fridge to harden before slicing. The dough is not liquid to start with, so it does not pour, and can be shaped without a form. If your "dough" "pours" I'm dubious about your recipe or method.