Class: Bosh::Director::Api::UserManagerProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/api/user/user_manager_provider.rb

Instance Method Summary collapse

Instance Method Details

#user_manager(config_users) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/bosh/director/api/user/user_manager_provider.rb', line 4

def user_manager(config_users)
  if config_users.nil? || config_users.empty?
    DatabaseUserManager.new
  else
    ConfigUserManager.new(config_users)
  end
end