Report abuse

1
2
3
4
5
6
7
8
9
10
11
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