Skip to content

Instantly share code, notes, and snippets.

@igponce
Created January 15, 2013 15:19
Show Gist options
  • Save igponce/4539373 to your computer and use it in GitHub Desktop.
Save igponce/4539373 to your computer and use it in GitHub Desktop.
# Detect debian architecture inside a CHEF recice using MixLIB
# Detect debian architecture inside a CHEF recice
ml = Mixlib::ShellOut.new("dpkg --print-architecture")
ml.run_command
debian_arch = ml.stdout unless ml.error!
puts debian_arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment