Commit e6616e04 authored by Alessio Caiazza's avatar Alessio Caiazza

Fix typos

parent 44f885ef
...@@ -5,17 +5,13 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll ...@@ -5,17 +5,13 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll
before_action :authorize_create_cluster!, only: [:create] before_action :authorize_create_cluster!, only: [:create]
def create def create
respond_to do |format| scheduled = Clusters::Applications::ScheduleInstallationService.new(project, current_user,
format.json do application_class: @application_class,
scheduled = Clusters::Applications::ScheduleInstallationService.new(project, current_user, cluster: @cluster).execute
application_class: @application_class, if scheduled
cluster: @cluster).execute head :no_data
if scheduled else
head :no_data head :bad_request
else
head :bad_request
end
end
end end
end end
......
...@@ -40,7 +40,7 @@ module Clusters ...@@ -40,7 +40,7 @@ module Clusters
end end
end end
def finilize_installation def finalize_installation
FinalizeInstallationService.new(app).execute FinalizeInstallationService.new(app).execute
end end
......
...@@ -3,7 +3,7 @@ class ClusterWaitForAppInstallationWorker ...@@ -3,7 +3,7 @@ class ClusterWaitForAppInstallationWorker
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
INTERVAL = 30.seconds INTERVAL = 10.seconds
TIMEOUT = 20.minutes TIMEOUT = 20.minutes
def perform(app_name, app_id) def perform(app_name, app_id)
......
...@@ -192,7 +192,7 @@ constraints(ProjectUrlConstrainer.new) do ...@@ -192,7 +192,7 @@ constraints(ProjectUrlConstrainer.new) do
get :status, format: :json get :status, format: :json
scope :applications do scope :applications do
get '/*application', to: 'clusters/applications#create' post '/*application', to: 'clusters/applications#create'
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment