Created
January 15, 2013 15:19
-
-
Save igponce/4539373 to your computer and use it in GitHub Desktop.
# Detect debian architecture inside a CHEF recice using MixLIB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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