@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | use Deployer\Utility\Httpie; |
76 | 76 | |
77 | 77 | // Title of project |
78 | -set('teams_title', function () { |
|
78 | +set('teams_title', function() { |
|
79 | 79 | return get('application', 'Project'); |
80 | 80 | }); |
81 | 81 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | set('teams_failure_color', '#ff0909'); |
91 | 91 | |
92 | 92 | desc('Notifies Teams'); |
93 | -task('teams:notify', function () { |
|
93 | +task('teams:notify', function() { |
|
94 | 94 | if (!get('teams_webhook', false)) { |
95 | 95 | warning('No MS Teams webhook configured'); |
96 | 96 | return; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ->hidden(); |
106 | 106 | |
107 | 107 | desc('Notifies Teams about deploy finish'); |
108 | -task('teams:notify:success', function () { |
|
108 | +task('teams:notify:success', function() { |
|
109 | 109 | if (!get('teams_webhook', false)) { |
110 | 110 | warning('No MS Teams webhook configured'); |
111 | 111 | return; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | ->hidden(); |
121 | 121 | |
122 | 122 | desc('Notifies Teams about deploy failure'); |
123 | -task('teams:notify:failure', function () { |
|
123 | +task('teams:notify:failure', function() { |
|
124 | 124 | if (!get('teams_webhook', false)) { |
125 | 125 | warning('No MS Teams webhook configured'); |
126 | 126 | return; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | set('ntfy_server', 'ntfy.sh'); |
90 | 90 | |
91 | 91 | // Title of project |
92 | -set('ntfy_title', function () { |
|
92 | +set('ntfy_title', function() { |
|
93 | 93 | return get('application', 'Project'); |
94 | 94 | }); |
95 | 95 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | set('ntfy_failure_tags', ''); |
105 | 105 | |
106 | 106 | desc('Notifies ntfy server'); |
107 | -task('ntfy:notify', function () { |
|
107 | +task('ntfy:notify', function() { |
|
108 | 108 | if (!get('ntfy_topic', false)) { |
109 | 109 | warning('No ntfy topic configured'); |
110 | 110 | return; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ->hidden(); |
123 | 123 | |
124 | 124 | desc('Notifies ntfy server about deploy finish'); |
125 | -task('ntfy:notify:success', function () { |
|
125 | +task('ntfy:notify:success', function() { |
|
126 | 126 | if (!get('ntfy_topic', false)) { |
127 | 127 | warning('No ntfy topic configured'); |
128 | 128 | return; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | ->hidden(); |
141 | 141 | |
142 | 142 | desc('Notifies ntfy server about deploy failure'); |
143 | -task('ntfy:notify:failure', function () { |
|
143 | +task('ntfy:notify:failure', function() { |
|
144 | 144 | if (!get('ntfy_topic', false)) { |
145 | 145 | warning('No ntfy topic configured'); |
146 | 146 | return; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | set('ispmanager_aliaslist', []); |
60 | 60 | |
61 | 61 | desc('Installs ispmanager'); |
62 | -task('ispmanager:init', function () { |
|
62 | +task('ispmanager:init', function() { |
|
63 | 63 | $config = get('ispmanager'); |
64 | 64 | |
65 | 65 | if (!is_null($config['createDatabase']) || !is_null($config['deleteDatabase'])) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | }); |
83 | 83 | |
84 | 84 | desc('Takes database servers list'); |
85 | -task('ispmanager:db-server-list', function () { |
|
85 | +task('ispmanager:db-server-list', function() { |
|
86 | 86 | $response = ispmanagerRequest('get', [ |
87 | 87 | 'func' => 'db.server', |
88 | 88 | ]); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | }); |
120 | 120 | |
121 | 121 | desc('Takes databases list'); |
122 | -task('ispmanager:db-list', function () { |
|
122 | +task('ispmanager:db-list', function() { |
|
123 | 123 | $response = ispmanagerRequest('get', [ |
124 | 124 | 'func' => 'db', |
125 | 125 | ]); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | }); |
142 | 142 | |
143 | 143 | desc('Takes domain list'); |
144 | -task('ispmanager:domain-list', function () { |
|
144 | +task('ispmanager:domain-list', function() { |
|
145 | 145 | $response = ispmanagerRequest('get', [ |
146 | 146 | 'func' => 'webdomain', |
147 | 147 | ]); |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | }); |
158 | 158 | |
159 | 159 | desc('Creates new database'); |
160 | -task('ispmanager:db-create', function () { |
|
160 | +task('ispmanager:db-create', function() { |
|
161 | 161 | $config = get('ispmanager'); |
162 | 162 | |
163 | 163 | if (is_null($config['createDatabase'])) { |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | }); |
228 | 228 | |
229 | 229 | desc('Deletes database'); |
230 | -task('ispmanager:db-delete', function () { |
|
230 | +task('ispmanager:db-delete', function() { |
|
231 | 231 | $config = get('ispmanager'); |
232 | 232 | |
233 | 233 | if (is_null($config['deleteDatabase'])) { |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | }); |
279 | 279 | |
280 | 280 | desc('Creates new domain'); |
281 | -task('ispmanager:domain-create', function () { |
|
281 | +task('ispmanager:domain-create', function() { |
|
282 | 282 | $config = get('ispmanager'); |
283 | 283 | |
284 | 284 | if (is_null($config['createDomain'])) { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | }); |
325 | 325 | |
326 | 326 | desc('Gets allowed PHP modes and versions'); |
327 | -task('ispmanager:get-php-list', function () { |
|
327 | +task('ispmanager:get-php-list', function() { |
|
328 | 328 | // Get www-root settings for fpm version |
329 | 329 | $response = ispmanagerRequest('get', [ |
330 | 330 | 'func' => 'user.edit', |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | }); |
371 | 371 | |
372 | 372 | desc('Prints allowed PHP modes and versions'); |
373 | -task('ispmanager:print-php-list', function () { |
|
373 | +task('ispmanager:print-php-list', function() { |
|
374 | 374 | invoke('ispmanager:get-php-list'); |
375 | 375 | |
376 | 376 | $versions = get('ispmanager_phplist'); |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | }); |
409 | 409 | |
410 | 410 | desc('Switches PHP version for domain'); |
411 | -task('ispmanager:domain-php-select', function () { |
|
411 | +task('ispmanager:domain-php-select', function() { |
|
412 | 412 | $config = get('ispmanager'); |
413 | 413 | |
414 | 414 | if (is_null($config['phpSelect'])) { |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | }); |
478 | 478 | |
479 | 479 | desc('Creates new domain alias'); |
480 | -task('ispmanager:domain-alias-create', function () { |
|
480 | +task('ispmanager:domain-alias-create', function() { |
|
481 | 481 | $config = get('ispmanager'); |
482 | 482 | |
483 | 483 | if (is_null($config['createAlias'])) { |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | }); |
547 | 547 | |
548 | 548 | desc('Deletes domain alias'); |
549 | -task('ispmanager:domain-alias-delete', function () { |
|
549 | +task('ispmanager:domain-alias-delete', function() { |
|
550 | 550 | $config = get('ispmanager'); |
551 | 551 | |
552 | 552 | if (is_null($config['deleteAlias'])) { |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | }); |
615 | 615 | |
616 | 616 | desc('Deletes domain'); |
617 | -task('ispmanager:domain-delete', function () { |
|
617 | +task('ispmanager:domain-delete', function() { |
|
618 | 618 | $config = get('ispmanager'); |
619 | 619 | |
620 | 620 | if (is_null($config['deleteDomain'])) { |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | }); |
662 | 662 | |
663 | 663 | desc('Auto task processing'); |
664 | -task('ispmanager:process', function () { |
|
664 | +task('ispmanager:process', function() { |
|
665 | 665 | $config = get('ispmanager'); |
666 | 666 | |
667 | 667 | if (!is_null($config['createDatabase'])) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | throw new \Exception('Please, configure "telegram_chat_id" parameter.'); |
73 | 73 | }); |
74 | 74 | set('telegram_url', function () { |
75 | - return 'https://api.telegram.org/bot' . get('telegram_token') . '/sendmessage'; |
|
75 | + return 'https://api.telegram.org/bot' . get('telegram_token') . '/sendmessage'; |
|
76 | 76 | }); |
77 | 77 | |
78 | 78 | // Deploy message |
@@ -112,39 +112,39 @@ discard block |
||
112 | 112 | ->once() |
113 | 113 | ->hidden(); |
114 | 114 | |
115 | - desc('Notifies Telegram about deploy finish'); |
|
116 | - task('telegram:notify:success', function () { |
|
117 | - if (!get('telegram_token', false)) { |
|
118 | - warning('No Telegram token configured'); |
|
119 | - return; |
|
120 | - } |
|
121 | - |
|
122 | - if (!get('telegram_chat_id', false)) { |
|
123 | - warning('No Telegram chat id configured'); |
|
124 | - return; |
|
125 | - } |
|
126 | - |
|
127 | - $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
128 | - Array ( |
|
129 | - 'chat_id' => get('telegram_chat_id'), |
|
130 | - 'text' => get('telegram_success_text'), |
|
131 | - 'parse_mode' => 'Markdown', |
|
132 | - ) |
|
133 | - ); |
|
134 | - |
|
135 | - $httpie = Httpie::get($telegramUrl); |
|
136 | - |
|
137 | - if (get('telegram_proxy', '') !== '') { |
|
138 | - $httpie = $httpie->setopt(CURLOPT_PROXY, get('telegram_proxy')); |
|
139 | - } |
|
140 | - |
|
141 | - $httpie->send(); |
|
115 | + desc('Notifies Telegram about deploy finish'); |
|
116 | + task('telegram:notify:success', function () { |
|
117 | + if (!get('telegram_token', false)) { |
|
118 | + warning('No Telegram token configured'); |
|
119 | + return; |
|
120 | + } |
|
121 | + |
|
122 | + if (!get('telegram_chat_id', false)) { |
|
123 | + warning('No Telegram chat id configured'); |
|
124 | + return; |
|
125 | + } |
|
126 | + |
|
127 | + $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
128 | + Array ( |
|
129 | + 'chat_id' => get('telegram_chat_id'), |
|
130 | + 'text' => get('telegram_success_text'), |
|
131 | + 'parse_mode' => 'Markdown', |
|
132 | + ) |
|
133 | + ); |
|
134 | + |
|
135 | + $httpie = Httpie::get($telegramUrl); |
|
136 | + |
|
137 | + if (get('telegram_proxy', '') !== '') { |
|
138 | + $httpie = $httpie->setopt(CURLOPT_PROXY, get('telegram_proxy')); |
|
139 | + } |
|
140 | + |
|
141 | + $httpie->send(); |
|
142 | 142 | }) |
143 | 143 | ->once() |
144 | 144 | ->hidden(); |
145 | 145 | |
146 | - desc('Notifies Telegram about deploy failure'); |
|
147 | - task('telegram:notify:failure', function () { |
|
146 | + desc('Notifies Telegram about deploy failure'); |
|
147 | + task('telegram:notify:failure', function () { |
|
148 | 148 | if (!get('telegram_token', false)) { |
149 | 149 | warning('No Telegram token configured'); |
150 | 150 | return; |
@@ -155,21 +155,21 @@ discard block |
||
155 | 155 | return; |
156 | 156 | } |
157 | 157 | |
158 | - $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
159 | - Array ( |
|
160 | - 'chat_id' => get('telegram_chat_id'), |
|
161 | - 'text' => get('telegram_failure_text'), |
|
162 | - 'parse_mode' => 'Markdown', |
|
163 | - ) |
|
164 | - ); |
|
158 | + $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
159 | + Array ( |
|
160 | + 'chat_id' => get('telegram_chat_id'), |
|
161 | + 'text' => get('telegram_failure_text'), |
|
162 | + 'parse_mode' => 'Markdown', |
|
163 | + ) |
|
164 | + ); |
|
165 | 165 | |
166 | - $httpie = Httpie::get($telegramUrl); |
|
166 | + $httpie = Httpie::get($telegramUrl); |
|
167 | 167 | |
168 | - if (get('telegram_proxy', '') !== '') { |
|
169 | - $httpie = $httpie->setopt(CURLOPT_PROXY, get('telegram_proxy')); |
|
170 | - } |
|
168 | + if (get('telegram_proxy', '') !== '') { |
|
169 | + $httpie = $httpie->setopt(CURLOPT_PROXY, get('telegram_proxy')); |
|
170 | + } |
|
171 | 171 | |
172 | - $httpie->send(); |
|
172 | + $httpie->send(); |
|
173 | 173 | }) |
174 | 174 | ->once() |
175 | 175 | ->hidden(); |
@@ -60,18 +60,18 @@ discard block |
||
60 | 60 | use Deployer\Utility\Httpie; |
61 | 61 | |
62 | 62 | // Title of project |
63 | -set('telegram_title', function () { |
|
63 | +set('telegram_title', function() { |
|
64 | 64 | return get('application', 'Project'); |
65 | 65 | }); |
66 | 66 | |
67 | 67 | // Telegram settings |
68 | -set('telegram_token', function () { |
|
68 | +set('telegram_token', function() { |
|
69 | 69 | throw new \Exception('Please, configure "telegram_token" parameter.'); |
70 | 70 | }); |
71 | -set('telegram_chat_id', function () { |
|
71 | +set('telegram_chat_id', function() { |
|
72 | 72 | throw new \Exception('Please, configure "telegram_chat_id" parameter.'); |
73 | 73 | }); |
74 | -set('telegram_url', function () { |
|
74 | +set('telegram_url', function() { |
|
75 | 75 | return 'https://api.telegram.org/bot' . get('telegram_token') . '/sendmessage'; |
76 | 76 | }); |
77 | 77 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | |
84 | 84 | desc('Notifies Telegram'); |
85 | -task('telegram:notify', function () { |
|
85 | +task('telegram:notify', function() { |
|
86 | 86 | if (!get('telegram_token', false)) { |
87 | 87 | warning('No Telegram token configured'); |
88 | 88 | return; |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | return; |
94 | 94 | } |
95 | 95 | |
96 | - $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
97 | - Array ( |
|
96 | + $telegramUrl = get('telegram_url') . '?' . http_build_query( |
|
97 | + Array( |
|
98 | 98 | 'chat_id' => get('telegram_chat_id'), |
99 | 99 | 'text' => get('telegram_text'), |
100 | 100 | 'parse_mode' => 'Markdown', |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | ->hidden(); |
114 | 114 | |
115 | 115 | desc('Notifies Telegram about deploy finish'); |
116 | - task('telegram:notify:success', function () { |
|
116 | + task('telegram:notify:success', function() { |
|
117 | 117 | if (!get('telegram_token', false)) { |
118 | 118 | warning('No Telegram token configured'); |
119 | 119 | return; |
@@ -124,8 +124,8 @@ discard block |
||
124 | 124 | return; |
125 | 125 | } |
126 | 126 | |
127 | - $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
128 | - Array ( |
|
127 | + $telegramUrl = get('telegram_url') . '?' . http_build_query( |
|
128 | + Array( |
|
129 | 129 | 'chat_id' => get('telegram_chat_id'), |
130 | 130 | 'text' => get('telegram_success_text'), |
131 | 131 | 'parse_mode' => 'Markdown', |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | ->hidden(); |
145 | 145 | |
146 | 146 | desc('Notifies Telegram about deploy failure'); |
147 | - task('telegram:notify:failure', function () { |
|
147 | + task('telegram:notify:failure', function() { |
|
148 | 148 | if (!get('telegram_token', false)) { |
149 | 149 | warning('No Telegram token configured'); |
150 | 150 | return; |
@@ -155,8 +155,8 @@ discard block |
||
155 | 155 | return; |
156 | 156 | } |
157 | 157 | |
158 | - $telegramUrl = get('telegram_url') . '?' . http_build_query ( |
|
159 | - Array ( |
|
158 | + $telegramUrl = get('telegram_url') . '?' . http_build_query( |
|
159 | + Array( |
|
160 | 160 | 'chat_id' => get('telegram_chat_id'), |
161 | 161 | 'text' => get('telegram_failure_text'), |
162 | 162 | 'parse_mode' => 'Markdown', |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | function supervisordGetBasicAuthToken() |
111 | 111 | { |
112 | - return 'Basic ' . base64_encode(get('supervisord_basic_auth_user'). ':'. get('supervisord_basic_auth_password')); |
|
112 | + return 'Basic ' . base64_encode(get('supervisord_basic_auth_user') . ':' . get('supervisord_basic_auth_password')); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | function supervisordIsAuthenticated() |
@@ -125,20 +125,20 @@ discard block |
||
125 | 125 | function supervisordControlAction($name, $action = 'stop') |
126 | 126 | { |
127 | 127 | $stopResponseInfo = []; |
128 | - Httpie::post(get('supervisord_uri') . '/control/'.$action.'/localhost/'.$name)->header('Authorization', supervisordGetBasicAuthToken())->send($stopResponseInfo); |
|
128 | + Httpie::post(get('supervisord_uri') . '/control/' . $action . '/localhost/' . $name)->header('Authorization', supervisordGetBasicAuthToken())->send($stopResponseInfo); |
|
129 | 129 | |
130 | 130 | return $stopResponseInfo['http_code'] === 200; |
131 | 131 | } |
132 | 132 | |
133 | -task('supervisord-monitor:restart', function () { |
|
133 | +task('supervisord-monitor:restart', function() { |
|
134 | 134 | if (supervisordIsAuthenticated()) { |
135 | 135 | $names = explode(',', get('supervisord_process_name')); |
136 | 136 | foreach ($names as $name) { |
137 | 137 | $name = trim($name); |
138 | 138 | if (supervisordControlAction($name, 'stop')) { |
139 | - writeln('Daemon ['.$name.'] stopped'); |
|
139 | + writeln('Daemon [' . $name . '] stopped'); |
|
140 | 140 | if (supervisordControlAction($name, 'start')) { |
141 | - writeln('Daemon ['.$name.'] started'); |
|
141 | + writeln('Daemon [' . $name . '] started'); |
|
142 | 142 | } |
143 | 143 | } |
144 | 144 | } |
@@ -147,13 +147,13 @@ discard block |
||
147 | 147 | } |
148 | 148 | }); |
149 | 149 | |
150 | -task('supervisord-monitor:stop', function () { |
|
150 | +task('supervisord-monitor:stop', function() { |
|
151 | 151 | if (supervisordIsAuthenticated()) { |
152 | 152 | $names = explode(',', get('supervisord_process_name')); |
153 | 153 | foreach ($names as $name) { |
154 | 154 | $name = trim($name); |
155 | 155 | if (supervisordControlAction($name, 'stop')) { |
156 | - writeln('Daemon ['.$name.'] stopped'); |
|
156 | + writeln('Daemon [' . $name . '] stopped'); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 | } else { |
@@ -161,13 +161,13 @@ discard block |
||
161 | 161 | } |
162 | 162 | }); |
163 | 163 | |
164 | -task('supervisord-monitor:start', function () { |
|
164 | +task('supervisord-monitor:start', function() { |
|
165 | 165 | if (supervisordIsAuthenticated()) { |
166 | 166 | $names = explode(',', get('supervisord_process_name')); |
167 | 167 | foreach ($names as $name) { |
168 | 168 | $name = trim($name); |
169 | 169 | if (supervisordControlAction($name, 'start')) { |
170 | - writeln('Daemon ['.$name.'] started'); |
|
170 | + writeln('Daemon [' . $name . '] started'); |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 | } else { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | use Deployer\Utility\Httpie; |
43 | 43 | |
44 | 44 | // Title of project |
45 | -set('chat_title', function () { |
|
45 | +set('chat_title', function() { |
|
46 | 46 | return get('application', 'Project'); |
47 | 47 | }); |
48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | set('chat_line2', '{{stage}}'); |
57 | 57 | |
58 | 58 | desc('Notifies Google Hangouts Chat'); |
59 | -task('chat:notify', function () { |
|
59 | +task('chat:notify', function() { |
|
60 | 60 | if (!get('chat_webhook', false)) { |
61 | 61 | return; |
62 | 62 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ->hidden(); |
99 | 99 | |
100 | 100 | desc('Notifies Google Hangouts Chat about deploy finish'); |
101 | -task('chat:notify:success', function () { |
|
101 | +task('chat:notify:success', function() { |
|
102 | 102 | if (!get('chat_webhook', false)) { |
103 | 103 | return; |
104 | 104 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | ->hidden(); |
141 | 141 | |
142 | 142 | desc('Notifies Google Hangouts Chat about deploy failure'); |
143 | -task('chat:notify:failure', function () { |
|
143 | +task('chat:notify:failure', function() { |
|
144 | 144 | if (!get('chat_webhook', false)) { |
145 | 145 | return; |
146 | 146 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | require_once __DIR__ . '/npm.php'; |
22 | 22 | require_once __DIR__ . '/yarn.php'; |
23 | 23 | |
24 | -set('webpack_encore/package_manager', function () { |
|
24 | +set('webpack_encore/package_manager', function() { |
|
25 | 25 | if (test('[ -f {{release_path}}/yarn.lock ]')) { |
26 | 26 | return 'yarn'; |
27 | 27 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | set('webpack_encore/env', 'production'); |
33 | 33 | |
34 | 34 | desc('Runs webpack encore build'); |
35 | -task('webpack_encore:build', function () { |
|
35 | +task('webpack_encore:build', function() { |
|
36 | 36 | $packageManager = get('webpack_encore/package_manager'); |
37 | 37 | |
38 | 38 | if (!in_array($packageManager, ['npm', 'yarn'], true)) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | set('yammer_url', 'https://www.yammer.com/api/v1/messages.json'); |
55 | 55 | |
56 | 56 | // Title of project |
57 | -set('yammer_title', function () { |
|
57 | +set('yammer_title', function() { |
|
58 | 58 | return get('application', 'Project'); |
59 | 59 | }); |
60 | 60 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | set('yammer_failure_body', 'Deploy to <strong>{{target}}</strong> failed'); |
65 | 65 | |
66 | 66 | desc('Notifies Yammer'); |
67 | -task('yammer:notify', function () { |
|
67 | +task('yammer:notify', function() { |
|
68 | 68 | $params = [ |
69 | 69 | 'is_rich_text' => 'true', |
70 | 70 | 'message_type' => 'announcement', |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ->hidden(); |
84 | 84 | |
85 | 85 | desc('Notifies Yammer about deploy finish'); |
86 | -task('yammer:notify:success', function () { |
|
86 | +task('yammer:notify:success', function() { |
|
87 | 87 | $params = [ |
88 | 88 | 'is_rich_text' => 'true', |
89 | 89 | 'message_type' => 'announcement', |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | ->hidden(); |
103 | 103 | |
104 | 104 | desc('Notifies Yammer about deploy failure'); |
105 | -task('yammer:notify:failure', function () { |
|
105 | +task('yammer:notify:failure', function() { |
|
106 | 106 | $params = [ |
107 | 107 | 'is_rich_text' => 'true', |
108 | 108 | 'message_type' => 'announcement', |
@@ -28,7 +28,7 @@ |
||
28 | 28 | set('hipchat_url', 'https://api.hipchat.com/v1/rooms/message'); |
29 | 29 | |
30 | 30 | desc('Notifies Hipchat channel of deployment'); |
31 | -task('hipchat:notify', function () { |
|
31 | +task('hipchat:notify', function() { |
|
32 | 32 | $params = [ |
33 | 33 | 'room_id' => get('hipchat_room_id'), |
34 | 34 | 'from' => get('target'), |