Class: CurrentUser
- Inherits:
-
Object
- Object
- CurrentUser
- Defined in:
- lib/current_user.rb
Overview
Represents the user under which Machinery is running.
Instance Method Summary collapse
Instance Method Details
#is_root? ⇒ Boolean
20 21 22 |
# File 'lib/current_user.rb', line 20 def is_root? Process.euid == 0 end |