Pastis is a simple interface to Pastie

pastis.rubyforge.org

Usage:

Pastie.paste "puts('It works!')", :language => :ruby

For further instruction see documentation.