Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created October 15, 2010 05:17
Show Gist options
  • Save adamhjk/627661 to your computer and use it in GitHub Desktop.
Save adamhjk/627661 to your computer and use it in GitHub Desktop.
Chef::ShellOut.new("nmap").run_command.stdout.each do |line|
# .. parse line ..
normal[:some_attr] = "whatevs"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment