提交 56226498 编写于 作者: S Shinya Maeda

Use fire_state_event

上级 5f47ebaa
......@@ -31,6 +31,6 @@ class BuildSuccessWorker
##
# 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册