class Chef::Resource::HabitatInstall
Public Instance Methods
hab_command()
click to toggle source
# File lib/chef/resource/habitat_install.rb, line 238 def hab_command cmd = "bash #{Chef::Config[:file_cache_path]}/hab-install.sh" cmd << " -v #{new_resource.hab_version} " if new_resource.hab_version cmd << " -t x86_64-linux-kernel2" if node["kernel"]["release"].to_i < 3 cmd end
hab_path()
click to toggle source
# File lib/chef/resource/habitat_install.rb, line 228 def hab_path if macos? "/usr/local/bin/hab" elsif windows? "C:/habitat/hab.exe" else "/bin/hab" end end