Class: ChefApply::Action::InstallChef::Linux
- Defined in:
- lib/chef_apply/action/install_chef/linux.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#download_to_workstation, #lookup_artifact, #name, #perform_action, #perform_local_install, #perform_remote_install, #train_to_mixlib, #upgrading?, #upload_to_target, #version_to_install
Methods inherited from Base
#escape_windows_path, #initialize, #name, #notify, #perform_action, #run, #run_chef
Constructor Details
This class inherits a constructor from ChefApply::Action::Base
Instance Method Details
#install_chef_to_target(remote_path) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/chef_apply/action/install_chef/linux.rb', line 20 def install_chef_to_target(remote_path) install_cmd = case File.extname(remote_path) when ".rpm" "rpm -Uvh #{remote_path}" when ".deb" "dpkg -i #{remote_path}" end target_host.run_command!(install_cmd) nil end |
#setup_remote_temp_path ⇒ Object
31 32 33 34 35 |
# File 'lib/chef_apply/action/install_chef/linux.rb', line 31 def setup_remote_temp_path installer_dir = "/tmp/chef-installer" target_host.mkdir(installer_dir) installer_dir end |