v-choco & v-ruby

This commit is contained in:
rabix 2022-03-03 01:06:57 +08:00
parent b5fa139f38
commit 5bba879dde
12 changed files with 44 additions and 0 deletions

4
bin/v-bundler.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where bundler >nul 2>nul
if errorlevel 1 call v-gem install bundler
call bundler %*

4
bin/v-choco.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where choco.exe >nul 2>nul
if errorlevel 1 powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"
choco.exe %*

4
bin/v-gem.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where gem >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv
call gem %*

4
bin/v-ghc.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where ghc.exe >nul 2>nul
if errorlevel 1 call v-choco install ghc -y & call refreshenv
ghc %*

4
bin/v-ghci.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where ghci.exe >nul 2>nul
if errorlevel 1 call v-choco install ghc -y & call refreshenv
ghci %*

4
bin/v-irb.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where irb >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv
irb %*

4
bin/v-node.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where npm >nul 2>nul
if errorlevel 1 call v-choco install nodejs -y & call refreshenv
call node %*

4
bin/v-npm.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where npm >nul 2>nul
if errorlevel 1 call v-choco install nodejs -y & call refreshenv
call npm %*

4
bin/v-ruby.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where ruby.exe >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv
ruby %*

4
bin/v-rubyw.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where rubyw >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv
rubyw %*

4
bin/v-runghc.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where runghc.exe >nul 2>nul
if errorlevel 1 call v-choco install ghc -y & call refreshenv
runghc %*

BIN
templates/ruby-sinatra.7z Normal file

Binary file not shown.