Method: ChefApply::Action::InstallChef#upload_to_target
- Defined in:
- lib/chef_apply/action/install_chef.rb
#upload_to_target(local_path) ⇒ Object
120 121 122 123 124 125 |
# File 'lib/chef_apply/action/install_chef.rb', line 120 def upload_to_target(local_path) installer_dir = target_host.temp_dir remote_path = File.join(installer_dir, File.basename(local_path)) target_host.upload_file(local_path, remote_path) remote_path end |