Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
module Puppet::Parser::Functions newfunction(:interface_alias, :type => :rvalue) do |args| interface_alias = args[0] interface_data = `ip address show label #{interface_alias}`.split interface_data[1].gsub(/\/\d+/, '') end end
This paste will be private.
From the Design Piracy series on my blog: