lib/fabric/account.rb in fabric-0.4.0 vs lib/fabric/account.rb in fabric-0.4.1
- old
+ new
@@ -15,10 +15,10 @@
self.server.execute_command("sudo chown #{self.user.name} #{user.ssh_config_directory_path}")
self.server.execute_command("sudo chmod 700 #{self.user.ssh_config_directory_path}")
end
def write_ssh_key
- self.server.execute_command("sudo touch #{self.user.authorized_keys_file}")
+ self.server.execute_command("sudo touch #{self.user.authorized_keys_file_path}")
self.server.execute_command("echo '#{self.user.authorized_keys_file}' | sudo tee #{self.user.authorized_keys_file_path}")
self.set_ssh_key_permissions
end
def add_to_groups
\ No newline at end of file