GitHub User: jessedearing
You can use Chef to install Ruby on the server instead of having to log in and set it up yourself.
You can use knife bootstrap host instead of logging in and installing everything chef needs manually. Chef even allows you to build your own custom bootstrap script based on what type of Linux machine your using.
knife bootstrap host
Check out knife help bootstrap
knife help bootstrap