diff options
Diffstat (limited to 'app/services/packages/ml_model/find_or_create_package_service.rb')
-rw-r--r-- | app/services/packages/ml_model/find_or_create_package_service.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/services/packages/ml_model/find_or_create_package_service.rb b/app/services/packages/ml_model/find_or_create_package_service.rb new file mode 100644 index 00000000000..cab99e1b008 --- /dev/null +++ b/app/services/packages/ml_model/find_or_create_package_service.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Packages + module MlModel + class FindOrCreatePackageService < ::Packages::CreatePackageService + def execute + find_or_create_package!(::Packages::Package.package_types['ml_model']) + end + end + end +end |