src/Rocketeer/Tasks/Subtasks/Notify.php
protected function getComponents()
    {
        // Get user name
        $user = $this->localStorage->get('notifier.name');
        if (!$user) {
            $user = $this->command->ask('Who is deploying ?') ?: 'Someone';
            $this->localStorage->set('notifier.name', $user);
        }

        // Get what was deployed
        $repository = $this->credentials->getCurrentRepository();
        $connection = $this->connections->getCurrentConnectionKey();

        return [
            'user' => $user,
            'branch' => $repository->branch,
            'handle' => $connection->toHandle(),
            'host' => $connection->host,
            'repository' => $repository->getName(),
        ];
    }
protected function getComponents()
    {
        // Get user name
        $user = $this->localStorage->get('notifier.name');
        if (!$user) {
            $user = $this->command->ask('Who is deploying ?') ?: 'Someone';
            $this->localStorage->set('notifier.name', $user);
        }

        // Get what was deployed
        $repository = $this->credentials->getCurrentRepository();
        $connection = $this->connections->getCurrentConnectionKey();

        return [
            'user' => $user,
            'branch' => $repository->branch,
            'handle' => $connection->toHandle(),
            'host' => $connection->host,
            'repository' => $repository->getName(),
        ];
    }
protected function getComponents ( ) { // Get user name $ user = $ this -> localStorage -> get ( 'notifier.name' ) ; if ( ! $ user ) { $ user = $ this -> command -> ask ( 'Who is deploying ?' ) ? : 'Someone' ; $ this -> localStorage -> set ( 'notifier.name' , $ user ) ; } // Get what was deployed $ repository = $ this -> credentials -> getCurrentRepository ( ) ; $ connection = $ this -> connections -> getCurrentConnectionKey ( ) ; return [ 'user' => $ user , 'branch' => $ repository -> branch , 'handle' => $ connection -> toHandle ( ) , 'host' => $ connection -> host , 'repository' => $ repository -> getName ( ) , ] ; }
Get the message's components.

@return string[]
Get the message s components .