Commit 8281793e authored by Robert Speicher's avatar Robert Speicher

Merge branch 'patch/geo-rename-fix' into 'master'

Geo: fix Geo::ScheduleRepoMoveService autoload error

While refactoring !354 (Geo: #76) missed class renaming. This will fix:

```
LoadError: Unable to autoload constant Geo::ScheduleRepoMoveService, expected /opt/gitlab/embedded/service/gitlab-rails/app/services/geo/schedule_repo_move_service.rb to define it
```

See merge request !364
parents 75136cc0 6b44ebb0
module Geo module Geo
class ScheduleRepoRenameService class ScheduleRepoMoveService
attr_reader :id, :name, :old_path_with_namespace, :path_with_namespace attr_reader :id, :name, :old_path_with_namespace, :path_with_namespace
def initialize(params) def initialize(params)
......
...@@ -35,10 +35,10 @@ module API ...@@ -35,10 +35,10 @@ module API
::Geo::ScheduleRepoDestroyService.new(params).execute ::Geo::ScheduleRepoDestroyService.new(params).execute
when 'project_rename' when 'project_rename'
required_attributes! %w(event_name project_id path_with_namespace old_path_with_namespace) required_attributes! %w(event_name project_id path_with_namespace old_path_with_namespace)
::Geo::ScheduleRepoRenameService.new(params).execute ::Geo::ScheduleRepoMoveService.new(params).execute
when 'project_transfer' when 'project_transfer'
required_attributes! %w(event_name project_id path_with_namespace old_path_with_namespace) required_attributes! %w(event_name project_id path_with_namespace old_path_with_namespace)
::Geo::ScheduleRepoRenameService.new(params).execute ::Geo::ScheduleRepoMoveService.new(params).execute
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