Module: LcpRuby::Groups::Setup

Defined in:
lib/lcp_ruby/groups/setup.rb

Class Method Summary collapse

Class Method Details

.apply!(loader) ⇒ Object

Boot-time setup for the groups subsystem. Called after models are built and permissions are set up.

Parameters:



8
9
10
11
12
13
14
15
16
17
# File 'lib/lcp_ruby/groups/setup.rb', line 8

def self.apply!(loader)
  source = LcpRuby.configuration.group_source
  return if source == :none

  case source
  when :yaml  then setup_yaml!(loader)
  when :model then setup_model!(loader)
  when :host  then setup_host!
  end
end