Stack builder scripts in ruby