Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
irb(main):001:0> require 'puppet' => true irb(main):002:0> require '/usr/lib/ruby/1.8/puppet/parser/functions/add_to_authkeys.rb' => true irb(main):003:0> Puppet::Parser::Functions.function(:add_to_authkeys) => "function_add_to_authkeys" irb(main):004:0> keystring = 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu....' => "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu...." irb(main):005:0> add_to_authkeys("#{keystring}",'/home/foo/.ssh/authorized_keys') NoMethodError: undefined method `add_to_authkeys' for main:Object from (irb):4
This paste will be private.
From the Design Piracy series on my blog: