Class: Caco::Debian::UserHome
- Inherits:
-
Trailblazer::Operation
- Object
- Trailblazer::Operation
- Caco::Debian::UserHome
- Defined in:
- lib/caco/debian/user_home.rb
Instance Method Summary collapse
Instance Method Details
#find_user_home(ctx, user:, passwd_output:) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/caco/debian/user_home.rb', line 10 def find_user_home(ctx, user:, passwd_output:, **) match = passwd_output.match(/^#{user}:[^:]*:[^:]*:[^:]*:[^:]*:([^:]*):.*$/) return false unless match ctx[:user_home] = match[1] end |