global
def hab(*command)
def hab(*command) # Windows shell_out does not support arrays, so manually cleaning and joining hab_cmd = if windows? (["hab"] + command).flatten.compact.join(" ") else (["hab"] + command) end shell_out!(hab_cmd) rescue Errno::ENOENT Chef::Log.fatal("'hab' binary not found, use the 'habitat_install' resource to install it first") raise end