Skip to content
Snippets Groups Projects
Commit da5bbfb6 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Use fire_state_event

parent df30aa08
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,6 +31,6 @@ def create_deployment(build)
##
# TODO: This should be processed in DeploymentSuccessWorker once we started storing `action` value in `deployments` records
def stop_environment(build)
build.persisted_environment.stop
build.persisted_environment.fire_state_event(:stop)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment