diff options
Diffstat (limited to 'app/services/admin/propagate_service_template.rb')
-rw-r--r-- | app/services/admin/propagate_service_template.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/services/admin/propagate_service_template.rb b/app/services/admin/propagate_service_template.rb new file mode 100644 index 00000000000..cd0d2d5d03f --- /dev/null +++ b/app/services/admin/propagate_service_template.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Admin + class PropagateServiceTemplate + include PropagateService + + def propagate + return unless integration.active? + + create_integration_for_projects_without_integration + end + + private + + def service_hash + @service_hash ||= integration.to_service_hash + end + end +end |