Class: Wemux::Pair::Commands::CheckForPairUser
- Defined in:
- lib/wemux/pair/commands/check_for_pair_user.rb
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Wemux::Pair::Commands::Command
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/wemux/pair/commands/check_for_pair_user.rb', line 7 def execute return if system("id -u #{pair_user} > /dev/null 2>&1") puts "There is some setup to do before this will work." puts "1. Create a user named \"#{pair_user}\"" puts "2. Put team's ssh public keys in ~/#{pair_user}/.ssh/authorized_keys (make sure it is owned by #{pair_user} and chmod 600)." exit 1 end |