forked from GithubBackups/healthchecks
PowerShell example on Welcome page.
This commit is contained in:
parent
6fced734d1
commit
0cf4e5c9df
@ -20,4 +20,6 @@ class Command(BaseCommand):
|
||||
_process("crontab.txt", "crontab.html", lexers.BashLexer())
|
||||
_process("python.txt", "python.html", lexers.PythonLexer())
|
||||
_process("php.txt", "php.html", lexers.PhpLexer())
|
||||
_process("powershell.txt", "powershell.html",
|
||||
lexers.shell.PowerShellLexer())
|
||||
_process("node.txt", "node.html", lexers.JavascriptLexer())
|
||||
|
2
templates/front/snippets/powershell.html
Normal file
2
templates/front/snippets/powershell.html
Normal file
@ -0,0 +1,2 @@
|
||||
<div class="highlight"><pre><span class="nb">Invoke-RestMethod</span> <span class="n">{{ ping_url }}</span>
|
||||
</pre></div>
|
1
templates/front/snippets/powershell.txt
Normal file
1
templates/front/snippets/powershell.txt
Normal file
@ -0,0 +1 @@
|
||||
Invoke-RestMethod PING_URL
|
@ -50,6 +50,9 @@
|
||||
<li class="hidden-xs">
|
||||
<a href="#browser" data-toggle="tab">Browser</a>
|
||||
</li>
|
||||
<li class="hidden-xs">
|
||||
<a href="#powershell" data-toggle="tab">PowerShell</a>
|
||||
</li>
|
||||
<li class="hidden-xs">
|
||||
<a href="#email" data-toggle="tab">Email</a>
|
||||
</li>
|
||||
@ -73,6 +76,9 @@
|
||||
<div class="tab-pane" id="browser">
|
||||
{% include "front/snippets/browser.html" %}
|
||||
</div>
|
||||
<div class="tab-pane" id="powershell">
|
||||
{% include "front/snippets/powershell.html" %}
|
||||
</div>
|
||||
<div class="tab-pane" id="email">
|
||||
<div class="instructions">
|
||||
As an alternative to HTTP/HTTPS requests,
|
||||
|
Loading…
x
Reference in New Issue
Block a user