Move ruby running code into RubyRunner (for testing)