class Chef::Resource::HabitatInstall
def hab_command
def hab_command cmd = "#{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
def hab_path
def hab_path if macos? "/usr/local/bin/hab" elsif windows? "C:/habitat/hab.exe" else "/bin/hab" end end