Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
#!/usr/bin/ruby require 'rubygems' require 'ruby-growl' # use a dyndns host if you are mobile host = "10.142.14.23" result = %x{/usr/bin/puppet --color false --parseonly /etc/puppet/manifests/site.pp}.chomp if result.chomp.any? g = Growl.new host, "ruby-growl", ["ruby-growl Notification"] g.notify "ruby-growl Notification", "Puppetmaster Config Problem", result end
This paste will be private.
From the Design Piracy series on my blog: