Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 18:10:26 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 18:10:26 +0300
commit4a369185d77013b2138f2daf6d85b1358425e75c (patch)
treeccdc489bb4f7dd71ba24b26f1cc936409a8c1be0 /app/services/create_deployment_service.rb
parent25dd1712ca01d017fd3b9c2d230a62e82444b5a1 (diff)
Work on specs
Diffstat (limited to 'app/services/create_deployment_service.rb')
-rw-r--r--app/services/create_deployment_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/create_deployment_service.rb b/app/services/create_deployment_service.rb
index 85c0bf72074..c55d2ed231a 100644
--- a/app/services/create_deployment_service.rb
+++ b/app/services/create_deployment_service.rb
@@ -9,7 +9,7 @@ class CreateDeploymentService < BaseService
@environment = environment
@environment.external_url = expanded_url if expanded_url
- @environment.state_event = action
+ @environment.fire_state_event(action)
@environment.save!
return if @environment.stopped?
@@ -68,6 +68,6 @@ class CreateDeploymentService < BaseService
end
def action
- params[:options].fetch(:action, 'start')
+ options[:action] || 'start'
end
end