Method: Specinfra::Command::Solaris::V10::User.check_has_authorized_key
- Defined in:
- lib/specinfra/command/solaris/v10/user.rb
permalink .check_has_authorized_key(user, key) ⇒ Object
[View source]
7 8 9 10 |
# File 'lib/specinfra/command/solaris/v10/user.rb', line 7 def (user, key) key.sub!(/\s+\S*$/, '') if key.match(/^\S+\s+\S+\s+\S*$/) "grep -- #{escape(key)} ~#{escape(user)}/.ssh/authorized_keys" end |