add sorbet installer

This commit is contained in:
tsukkee
2023-12-07 23:08:49 +09:00
committed by mattn
parent cf00aa1cbd
commit d23f48a312
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
@echo off
echo @echo off ^
setlocal ^
set TARGET_DIR=%%1 ^
shift ^
cd %%TARGET_DIR%% ^
bundle exec srb typecheck %%* ^
> sorbet.cmd
echo Install Done.
echo **You need add sorbet dependencies in Gemfile.**

17
installer/install-sorbet.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -e
cat <<EOF >sorbet
#!/bin/sh
TARGET_DIR=\$1
shift
cd \${TARGET_DIR}
bundle exec srb typecheck \$*
EOF
chmod +x sorbet
echo 'Install Done.'
echo '**You need add sorbet dependencies in Gemfile.**'