Add Thor#disable #211

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@nicknovitski

This method takes a string and a block. While the block evaluates to true, the following task is hidden from help, and invoking it will raise an exception with the passed string as a message.

@nicknovitski nicknovitski Add Thor#disable
This method takes a string and a block.  While the block evaluates to true, the following task is hidden from help, and invoking it will raise an exception with the passed string as a message.
cd99cb6
@wycats
Member
wycats commented Feb 23, 2013

You should use no_tasks {} to surround methods that are not tasks.

@wycats wycats closed this Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment