lib/current_user.rb in machinery-tool-1.16.1 vs lib/current_user.rb in machinery-tool-1.16.2
- old
+ new
@@ -15,9 +15,13 @@
# To contact SUSE about this file by physical or electronic mail,
# you may find current contact information at www.suse.com
# Represents the user under which Machinery is running.
class CurrentUser
+ def username
+ ENV["USER"]
+ end
+
def is_root?
Process.euid == 0
end
end