Method: ChefApply::CLI#connect_target

Defined in:
lib/chef_apply/cli.rb

#connect_target(target_host, reporter) ⇒ Object

Accepts a target_host and establishes the connection to that host while providing visual feedback via the Terminal API.



175
176
177
178
179
# File 'lib/chef_apply/cli.rb', line 175

def connect_target(target_host, reporter)
  connect_message = T.status.connecting(target_host.user)
  reporter.update(connect_message)
  do_connect(target_host, reporter)
end