Created
November 19, 2015 04:44
-
-
Save jayzz55/5b5dde20c2cd813a4420 to your computer and use it in GitHub Desktop.
PubKeys_remove
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def remove_user_key(ssh_key, files_list, path) do | |
| files_list | |
| |> Enum.reject(&empty?(&1)) | |
| |> Enum.map(&read_keys(&1, path)) | |
| |> Enum.reject(&should_skip?(&1, ssh_key, :remove)) | |
| |> Enum.map(&remove_key(&1, ssh_key, path)) | |
| |> Enum.map(&scp_to_server(&1, path)) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment