Class: User
Instance Method Summary collapse
- #authorized_keys_file ⇒ Object
- #authorized_keys_file_path ⇒ Object
- #home_directory_path ⇒ Object
- #ssh_config_directory_path ⇒ Object
Instance Method Details
#authorized_keys_file ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fabric/user.rb', line 13 def = self.keys.collect(&:public_key).join raise "User #{self.name} has a blank SSH key - this is not permitted" if .blank? end |
#authorized_keys_file_path ⇒ Object
20 21 22 |
# File 'lib/fabric/user.rb', line 20 def "/home/#{self.name}/.ssh/authorized_keys" end |
#home_directory_path ⇒ Object
24 25 26 |
# File 'lib/fabric/user.rb', line 24 def home_directory_path "/home/#{self.name}/" end |
#ssh_config_directory_path ⇒ Object
28 29 30 |
# File 'lib/fabric/user.rb', line 28 def ssh_config_directory_path "/home/#{self.name}/.ssh/" end |