commandbox.system.modules_app.system-commands.commands

Class assertTrue

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.assertTrue

Returns a passing (0) or failing (1) exit code whether truthy parameter passed. Command outputs nothing. Truthy values are "yes", "true" and positive integers. All other values are considered falsy . {code:bash} assertTrue `package show private` && run-script foo assertTrue ${ENABLE_DOOM} && run-doom assertTrue `#fileExists foo.txt` && echo "it's there!" {code}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(string predicate)
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(string predicate)

    Parameters:
    predicate - A value that is truthy or falsy.