Skip to content

Commit 379b5fd

Browse files
authored
Merge pull request #364 from OpenVoxProject/restore_help
Restore the legend of help help help help help
2 parents a0c14e8 + 551a4b5 commit 379b5fd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/puppet/face/help.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,24 @@
4242
end
4343

4444
if args.length > 2
45+
# rubocop:disable all
46+
if args.select { |x| x == 'help' }.length > 2 then
47+
c = "\n %'(),-./=ADEFHILORSTUXY\\_`gnv|".split('')
48+
i = <<-'EOT'.gsub(/\s*/, '').to_i(36)
49+
3he6737w1aghshs6nwrivl8mz5mu9nywg9tbtlt081uv6fq5kvxse1td3tj1wvccmte806nb
50+
cy6de2ogw0fqjymbfwi6a304vd56vlq71atwmqsvz3gpu0hj42200otlycweufh0hylu79t3
51+
gmrijm6pgn26ic575qkexyuoncbujv0vcscgzh5us2swklsp5cqnuanlrbnget7rt3956kam
52+
j8adhdrzqqt9bor0cv2fqgkloref0ygk3dekiwfj1zxrt13moyhn217yy6w4shwyywik7w0l
53+
xtuevmh0m7xp6eoswin70khm5nrggkui6z8vdjnrgdqeojq40fya5qexk97g4d8qgw0hvokr
54+
pli1biaz503grqf2ycy0ppkhz1hwhl6ifbpet7xd6jjepq4oe0ofl575lxdzjeg25217zyl4
55+
nokn6tj5pq7gcdsjre75rqylydh7iia7s3yrko4f5ud9v8hdtqhu60stcitirvfj6zphppmx
56+
7wfm7i9641d00bhs44n6vh6qvx39pg3urifgr6ihx3e0j1ychzypunyou7iplevitkyg6gbg
57+
wm08oy1rvogcjakkqc1f7y1awdfvlb4ego8wrtgu9vzw4vmj59utwifn2ejcs569dh1oaavi
58+
sc581n7jjg1dugzdu094fdobtx6rsvk3sfctvqnr36xctold
59+
EOT
60+
353.times{i,x=i.divmod(1184);a,b=x.divmod(37);print(c[a]*b)}
61+
end
62+
# rubocop:enable all
4563
# TRANSLATORS 'puppet help' is a command line and should not be translated
4664
raise ArgumentError, _("The 'puppet help' command takes two (optional) arguments: a subcommand and an action")
4765
end

0 commit comments

Comments
 (0)