Class: Dk::ABDeploy::Cleanup
- Inherits:
-
Object
- Object
- Dk::ABDeploy::Cleanup
- Includes:
- Task
- Defined in:
- lib/dk-abdeploy/cleanup.rb
Instance Method Summary collapse
Instance Method Details
#run! ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/dk-abdeploy/cleanup.rb', line 18 def run! # current release dir is the one that was current pre-update - the # non-deploy release dir if params[CURRENT_RELEASE_DIR_PARAM_NAME].to_s.empty? raise ArgumentError, "no #{CURRENT_RELEASE_DIR_PARAM_NAME.inspect} param set" end if params[REF_PARAM_NAME].to_s.empty? raise ArgumentError, "no #{REF_PARAM_NAME.inspect} param set" end # reset the non-deploy release git repo ssh! git_reset_cmd_str(params[CURRENT_RELEASE_DIR_PARAM_NAME], params[REF_PARAM_NAME]) end |