Class: GitWit::AuthorizedKeys::Key
- Inherits:
-
AuthorizedKeys::Key
- Object
- AuthorizedKeys::Key
- GitWit::AuthorizedKeys::Key
- Defined in:
- lib/git_wit/authorized_keys.rb
Constant Summary collapse
- SHELL_OPTIONS =
%w(no-port-forwarding no-X11-forwarding no-agent-forwarding no-pty)
Class Method Summary collapse
Class Method Details
.shell_key_for_username(username, key) ⇒ Object
95 96 97 98 99 |
# File 'lib/git_wit/authorized_keys.rb', line 95 def self.shell_key_for_username(username, key) key = self.new key if key.is_a? String key. = [%(command="gw-shell #{username}"), *SHELL_OPTIONS] key end |