Skip to content

Instantly share code, notes, and snippets.

@jayzz55
Created November 19, 2015 04:44
Show Gist options
  • Select an option

  • Save jayzz55/5b5dde20c2cd813a4420 to your computer and use it in GitHub Desktop.

Select an option

Save jayzz55/5b5dde20c2cd813a4420 to your computer and use it in GitHub Desktop.
PubKeys_remove
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