refactored the live-deploy and moved the logic into a separate class