Ruby scripting