From 5bba879dde4a72b5dd6ef2210a4ceb2136d94af1 Mon Sep 17 00:00:00 2001 From: rabix Date: Thu, 3 Mar 2022 01:06:57 +0800 Subject: [PATCH] v-choco & v-ruby --- bin/v-bundler.cmd | 4 ++++ bin/v-choco.cmd | 4 ++++ bin/v-gem.cmd | 4 ++++ bin/v-ghc.cmd | 4 ++++ bin/v-ghci.cmd | 4 ++++ bin/v-irb.cmd | 4 ++++ bin/v-node.cmd | 4 ++++ bin/v-npm.cmd | 4 ++++ bin/v-ruby.cmd | 4 ++++ bin/v-rubyw.cmd | 4 ++++ bin/v-runghc.cmd | 4 ++++ templates/ruby-sinatra.7z | Bin 0 -> 281 bytes 12 files changed, 44 insertions(+) create mode 100644 bin/v-bundler.cmd create mode 100644 bin/v-choco.cmd create mode 100644 bin/v-gem.cmd create mode 100644 bin/v-ghc.cmd create mode 100644 bin/v-ghci.cmd create mode 100644 bin/v-irb.cmd create mode 100644 bin/v-node.cmd create mode 100644 bin/v-npm.cmd create mode 100644 bin/v-ruby.cmd create mode 100644 bin/v-rubyw.cmd create mode 100644 bin/v-runghc.cmd create mode 100644 templates/ruby-sinatra.7z diff --git a/bin/v-bundler.cmd b/bin/v-bundler.cmd new file mode 100644 index 0000000..9f90875 --- /dev/null +++ b/bin/v-bundler.cmd @@ -0,0 +1,4 @@ +@echo off +where bundler >nul 2>nul +if errorlevel 1 call v-gem install bundler +call bundler %* \ No newline at end of file diff --git a/bin/v-choco.cmd b/bin/v-choco.cmd new file mode 100644 index 0000000..beb9dac --- /dev/null +++ b/bin/v-choco.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-gem.cmd b/bin/v-gem.cmd new file mode 100644 index 0000000..9dcca39 --- /dev/null +++ b/bin/v-gem.cmd @@ -0,0 +1,4 @@ +@echo off +where gem >nul 2>nul +if errorlevel 1 call v-choco install ruby -y & call refreshenv +call gem %* \ No newline at end of file diff --git a/bin/v-ghc.cmd b/bin/v-ghc.cmd new file mode 100644 index 0000000..d97503f --- /dev/null +++ b/bin/v-ghc.cmd @@ -0,0 +1,4 @@ +@echo off +where ghc.exe >nul 2>nul +if errorlevel 1 call v-choco install ghc -y & call refreshenv +ghc %* \ No newline at end of file diff --git a/bin/v-ghci.cmd b/bin/v-ghci.cmd new file mode 100644 index 0000000..4d074bc --- /dev/null +++ b/bin/v-ghci.cmd @@ -0,0 +1,4 @@ +@echo off +where ghci.exe >nul 2>nul +if errorlevel 1 call v-choco install ghc -y & call refreshenv +ghci %* \ No newline at end of file diff --git a/bin/v-irb.cmd b/bin/v-irb.cmd new file mode 100644 index 0000000..6cec506 --- /dev/null +++ b/bin/v-irb.cmd @@ -0,0 +1,4 @@ +@echo off +where irb >nul 2>nul +if errorlevel 1 call v-choco install ruby -y & call refreshenv +irb %* \ No newline at end of file diff --git a/bin/v-node.cmd b/bin/v-node.cmd new file mode 100644 index 0000000..a711a8a --- /dev/null +++ b/bin/v-node.cmd @@ -0,0 +1,4 @@ +@echo off +where npm >nul 2>nul +if errorlevel 1 call v-choco install nodejs -y & call refreshenv +call node %* \ No newline at end of file diff --git a/bin/v-npm.cmd b/bin/v-npm.cmd new file mode 100644 index 0000000..149a44e --- /dev/null +++ b/bin/v-npm.cmd @@ -0,0 +1,4 @@ +@echo off +where npm >nul 2>nul +if errorlevel 1 call v-choco install nodejs -y & call refreshenv +call npm %* \ No newline at end of file diff --git a/bin/v-ruby.cmd b/bin/v-ruby.cmd new file mode 100644 index 0000000..bee2bfe --- /dev/null +++ b/bin/v-ruby.cmd @@ -0,0 +1,4 @@ +@echo off +where ruby.exe >nul 2>nul +if errorlevel 1 call v-choco install ruby -y & call refreshenv +ruby %* \ No newline at end of file diff --git a/bin/v-rubyw.cmd b/bin/v-rubyw.cmd new file mode 100644 index 0000000..eadd68d --- /dev/null +++ b/bin/v-rubyw.cmd @@ -0,0 +1,4 @@ +@echo off +where rubyw >nul 2>nul +if errorlevel 1 call v-choco install ruby -y & call refreshenv +rubyw %* \ No newline at end of file diff --git a/bin/v-runghc.cmd b/bin/v-runghc.cmd new file mode 100644 index 0000000..2656122 --- /dev/null +++ b/bin/v-runghc.cmd @@ -0,0 +1,4 @@ +@echo off +where runghc.exe >nul 2>nul +if errorlevel 1 call v-choco install ghc -y & call refreshenv +runghc %* \ No newline at end of file diff --git a/templates/ruby-sinatra.7z b/templates/ruby-sinatra.7z new file mode 100644 index 0000000000000000000000000000000000000000..497e86ca12cf8eb9ed2114bbff4138b87a0c7dae GIT binary patch literal 281 zcmXr7+Ou9=hJnRM@%{Rn3=p6IrF)qe;~y|oGNi{cSk68z`2LOkP0?ht*toz`Z5yTX z4qIJJlIr-;%rCGc-yS3b8)Q{JA{kpo2<4eVcsY)>k;%xbhoLLO) d+>8v2%FK+6tg#FN3=BMFT#ON`9WFC4002_8bq4?d literal 0 HcmV?d00001