Class: Ingress::Services::BuildPermissionsRepositoryForRole

Inherits:
Object
  • Object
show all
Defined in:
lib/ingress/build_permissions_repository_for_role.rb

Class Method Summary collapse

Class Method Details

.perform(role_identifier, &block) ⇒ Object



7
8
9
10
11
# File 'lib/ingress/build_permissions_repository_for_role.rb', line 7

def perform(role_identifier, &block)
  permissions_dsl = PermissionsDsl.new(role_identifier)
  permissions_dsl.instance_eval(&block)
  permissions_dsl.permission_repository
end