lib/simple_deploy/stack/deployment/status.rb in simple_deploy-0.4.8 vs lib/simple_deploy/stack/deployment/status.rb in simple_deploy-0.5.0
- old
+ new
@@ -9,17 +9,17 @@
@ssh_user = args[:ssh_user]
@name = args[:name]
@logger = @config.logger
end
- def cleared_to_deploy?(force=false)
- return true unless deployment_in_progress?
+ def clear_for_deployment?
+ !deployment_in_progress?
+ end
- if force
+ def clear_deployment_lock(force=false)
+ if deployment_in_progress? && force
@logger.info "Forcing. Clearing deployment status."
unset_deployment_in_progress
- else
- false
end
end
def deployment_in_progress?
@logger.debug "Checking deployment status for #{@name}."