debian-mirror-gitlab/app/services/onboarding_progress_service.rb

14 lines
255 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
class OnboardingProgressService
def initialize(namespace)
2021-03-08 18:12:59 +05:30
@namespace = namespace&.root_ancestor
2021-02-22 17:27:13 +05:30
end
def execute(action:)
2021-03-08 18:12:59 +05:30
return unless @namespace
OnboardingProgress.register(@namespace, action)
2021-02-22 17:27:13 +05:30
end
end