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 19 20 |
# File 'lib/fabric/user.rb', line 13 def = self.keys.inject('') do |, key| << key.public_key end raise "User #{self.name} has a blank SSH key - this is not permitted" if .blank? end |
#authorized_keys_file_path ⇒ Object
22 23 24 |
# File 'lib/fabric/user.rb', line 22 def "/home/#{self.name}/.ssh/authorized_keys" end |
#home_directory_path ⇒ Object
26 27 28 |
# File 'lib/fabric/user.rb', line 26 def home_directory_path "/home/#{self.name}/" end |
#ssh_config_directory_path ⇒ Object
30 31 32 |
# File 'lib/fabric/user.rb', line 30 def ssh_config_directory_path "/home/#{self.name}/.ssh/" end |