Module: UserManagement

Defined in:
lib/capistrano/modules/user_management.rb

Instance Method Summary collapse

Instance Method Details

#am_i?(user_name) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/capistrano/modules/user_management.rb', line 7

def am_i?(user_name)
  whoami == user_name
end

#whoamiObject



3
4
5
# File 'lib/capistrano/modules/user_management.rb', line 3

def whoami
  capture(:whoami)
end