Sha256: 9df74ea6335f89f26681e3ae86347b222c6ac720d552ff8903b729ba43628449

Contents?: true

Size: 517 Bytes

Versions: 22

Compression:

Stored size: 517 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'reactor/cm/user'

module Reactor
  class Session
    class User
      def initialize(user_name)
        # Rails.logger.debug "Reading user #{user_name} from CM"
        user      = Reactor::Cm::User.new(user_name)
        @user_name= user_name
        @groups   = user.groups
        @language = user.language
        @superuser= user.is_root?
      end

      attr_reader :user_name, :groups, :language

      def superuser?
        @superuser == true
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
infopark_reactor-1.15.0.beta1 lib/reactor/session/user.rb
infopark_reactor-1.14.0.beta2 lib/reactor/session/user.rb
infopark_reactor-1.14.0.beta1 lib/reactor/session/user.rb
infopark_reactor-1.13.0 lib/reactor/session/user.rb
infopark_reactor-1.12.0 lib/reactor/session/user.rb
infopark_reactor-1.12.0.beta2 lib/reactor/session/user.rb
infopark_reactor-1.12.0.beta1 lib/reactor/session/user.rb
infopark_reactor-1.11.0.beta3 lib/reactor/session/user.rb
infopark_reactor-1.11.0.beta2 lib/reactor/session/user.rb
infopark_reactor-1.10.0.beta lib/reactor/session/user.rb
infopark_reactor-1.9.1 lib/reactor/session/user.rb
infopark_reactor-1.9.0.beta2 lib/reactor/session/user.rb
infopark_reactor-1.9.0.beta lib/reactor/session/user.rb
infopark_reactor-1.8.4 lib/reactor/session/user.rb
infopark_reactor-1.8.3 lib/reactor/session/user.rb
infopark_reactor-1.8.2 lib/reactor/session/user.rb
infopark_reactor-1.8.1 lib/reactor/session/user.rb
infopark_reactor-1.8.0 lib/reactor/session/user.rb
infopark_reactor-1.7.2 lib/reactor/session/user.rb
infopark_reactor-1.7.1 lib/reactor/session/user.rb