use ruby to capture CLI in cap deploy