modfied deploy.rb for cap