Add ruby blocks to conditions

Correct the conditional logic applied by the composer LWRP to decide
when actions can be taken.

This resolves #14