Adds a host name to the ~/.ssh/known_hosts file to allow subsequent
SSH access.
Requires ssh-keyscan on the system PATH.
Examples
dsl_init()
#> ✔ Creating a clean tic stage configuration
#> ℹ See `?tic::dsl_get` for details
get_stage("before_deploy") %>%
add_step(step_add_to_known_hosts("gitlab.com"))
#> Superclass TicStep has cloneable=FALSE, but subclass AddToKnownHosts has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for AddToKnownHosts.
dsl_get()
#> ── tic configuration summary ───────────────────────────────────────────────────
#> ── Stage: before_deploy ────────────────────────────────────────────────────────
#> ▶ step_add_to_known_hosts("gitlab.com")
