condensing commands into one ruby field