To put the cock in front of the cabin is when one brings something they don't want onto themselves by their own actions. Simialr to waving the red flag at the bull, this could take the form of setting someone else up with an irresistable insult accidentally or leading someone on inadvertantly.

Jenny was pissed last night because I kept trying to have sex with her, but she really put the cock in front of the cabin when she came over to talk at midnight wearing nothing but stilleto heels, crotchless panties, and a lobster bib.