Class: Clusters::Agents::Authorizations::UserAccess::RefreshService

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/services/clusters/agents/authorizations/user_access/refresh_service.rb

Constant Summary collapse

AUTHORIZED_ENTITY_LIMIT =
100

Instance Method Summary collapse

Constructor Details

#initialize(agent, config:) ⇒ RefreshService

Returns a new instance of RefreshService.



15
16
17
18
# File 'app/services/clusters/agents/authorizations/user_access/refresh_service.rb', line 15

def initialize(agent, config:)
  @agent = agent
  @config = config
end

Instance Method Details

#executeObject



20
21
22
23
24
25
# File 'app/services/clusters/agents/authorizations/user_access/refresh_service.rb', line 20

def execute
  refresh_projects!
  refresh_groups!

  true
end