Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Console/SshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ protected function fire()
* Get the server from the task container.
*
* @param \Laravel\Envoy\TaskContainer $container
* @throws \InvalidArgumentException
* @return string
*
* @throws \InvalidArgumentException
*/
protected function getServer(TaskContainer $container)
{
Expand Down
22 changes: 22 additions & 0 deletions src/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,32 @@ class Discord
{
use ConfigurationParser;

/**
* The webhook URL.
*
* @var string
*/
public $hook;

/**
* The message.
*
* @var string
*/
public $message;

/**
* The options.
*
* @var array
*/
public $options;

/**
* The task name.
*
* @var string
*/
protected $task;

/**
Expand Down
30 changes: 29 additions & 1 deletion src/Slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,39 @@ class Slack
{
use ConfigurationParser;

/**
* The webhook URL.
*
* @var string
*/
public $hook;

/**
* The Slack channel.
*
* @var mixed
*/
public $channel;

/**
* The message.
*
* @var string
*/
public $message;

/**
* The options.
*
* @var array
*/
public $options;

/**
* The task name.
*
* @var string
*/
protected $task;

/**
Expand All @@ -36,7 +64,7 @@ public function __construct($hook, $channel = '', $message = null, $options = []
* Create a new Slack message instance.
*
* @param string $hook
* @param mixed $channel
* @param mixed $channel
* @param string $message
* @param array $options
* @return \Laravel\Envoy\Slack
Expand Down
6 changes: 4 additions & 2 deletions src/TaskContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ public function servers(array $servers)
* Get the IP address for a server.
*
* @param string $server
* @throws \Exception
* @return string|null
*
* @throws \Exception
*/
public function getServer($server)
{
Expand Down Expand Up @@ -319,8 +320,9 @@ public function getTasks()
*
* @param string $task
* @param array $macroOptions
* @throws \Exception
* @return \Laravel\Envoy\Task
*
* @throws \Exception
*/
public function getTask($task, array $macroOptions = [])
{
Expand Down