Module: UserManagement

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

Instance Method Summary collapse

Instance Method Details

#am_i?(user_name) ⇒ Boolean

Returns:

  • (Boolean)


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

def am_i?(user_name)
  whoami == user_name
end

#whoamiObject



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

def whoami
  capture(:whoami)
end