RPort
Search…
Tacoscript
RPort provides its own scripting language to make complex tasks easy.
Starting with RPort version 0.5.0 Tacoscript will installed by default with the RPort client.

At a glance

Tacoscript is a declarative scripting language for the easy automation of tasks. It uses human-readable YAML as input files. The interpreter consists of a single static binary available for almost any operating system. Read more.

Install Tacoscript

Only for Rport versions before 0.5.0 tacoscript is not installed by default. You must install it manually. But you can use the RPort script execution to perform the installation from the RPort web interface.
Windows (PowerShell)
Linux (Bash)
1
$dest = "C:\Program Files\tacoscript"
2
if(Test-Path -Path $dest) {
3
Write-Host "Tacoscript already installed to $($dest)"
4
exit 0
5
}
6
$Temp = [System.Environment]::GetEnvironmentVariable('TEMP','Machine')
7
Set-Location $Temp
8
$url = "https://download.rport.io/tacoscript/stable/?arch=Windows_x86_64"
9
$file = "tacoscript.zip"
10
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
11
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
12
Write-Host "Tacoscript dowloaded to $($Temp)\$($file)"
13
New-Item -ItemType Directory -Force -Path "$($dest)\bin"|Out-Null
14
Expand-Archive -Path $file -DestinationPath $dest -force
15
mv "$($dest)\tacoscript.exe" "$($dest)\bin"
16
Write-Host "Tacoscript installed to $($dest)"
17
$ENV:PATH="$ENV:PATH;$($dest)\bin"
18
​
19
[Environment]::SetEnvironmentVariable(
20
"Path",
21
[Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine) + ";$($dest)\bin",
22
[EnvironmentVariableTarget]::Machine
23
)
24
& tacoscript --version
25
rm $file -force
Copied!
1
#!/bin/sh
2
#
3
# Install Tacoscript on Linux
4
#
5
set -e
6
if [ -e /usr/local/bin/tacoscript ];then
7
echo "Tacoscript already installed"
8
exit 0
9
fi
10
cd /tmp
11
test -e tacoscript.tar.gz&&rm -f tacoscript.tar.gz
12
curl -LJs "https://download.rport.io/tacoscript/unstable/?arch=Linux_$(uname -m)" -o tacoscript.tar.gz
13
tar xvzf tacoscript.tar.gz -C /usr/local/bin/ tacoscript
14
rm -f tacoscript.tar.gz
15
tacoscript --version
Copied!
Export as PDF
Copy link