You use curly braces for this multiline block, but a do/end for an otherwise single-line block up on https://github.com/limhoff-r7/metasploit-framework/pull/10/files#diff-3ac411663338795feb2cf9fd92001f49R130 .

This should be a do/end, IMO. Multiline {}'s make me think option hashes.