Skip to content

Commit

Permalink
ask for protocol when creating a monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 28, 2017
1 parent 0161c73 commit c8c6d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-uptime-monitor` will be documented in this file

## 2.0.1 - 2017-01-27

- ask for protocol when creating a monitor

## 2.0.0 - 2017-01-24

- add support for L5.4
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CreateMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function handle()

if (! in_array($url->getScheme(), ['http', 'https'])) {

if ($scheme = $this->choice('What protocol do we need?', [1 => 'http', 2 => 'https'], 2)) {
if ($scheme = $this->choice("Which protocol needs to be used for checking `{$url}`?", [1 => 'https', 2 => 'http'], 1)) {
$url = $url->withScheme($scheme);
}
}
Expand Down

0 comments on commit c8c6d50

Please sign in to comment.