library/Garp/Cli/Command/Slack.php
public function send(array $args = array()) {
        if (!$args || !array_key_exists(0, $args) || empty($args[0])) {
            Garp_Cli::errorOut(self::ERROR_EMPTY_SEND);
            return false;
        }

        $slack = new Garp_Service_Slack();
        return $slack->postMessage($args[0]);
    }
public function send(array $args = array()) {
        if (!$args || !array_key_exists(0, $args) || empty($args[0])) {
            Garp_Cli::errorOut(self::ERROR_EMPTY_SEND);
            return false;
        }

        $slack = new Garp_Service_Slack();
        return $slack->postMessage($args[0]);
    }
public function send ( array $ args = array ( ) ) { if ( ! $ args || ! array_key_exists ( 0 , $ args ) || empty ( $ args [ 0 ] ) ) { Garp_Cli :: errorOut ( self :: ERROR_EMPTY_SEND ) ; return false ; } $ slack = new Garp_Service_Slack ( ) ; return $ slack -> postMessage ( $ args [ 0 ] ) ; }
Post a message in a Slack channel

@param array $args
@return bool
Post a message in a Slack channel