aboutsummaryrefslogtreecommitdiff
path: root/installer/install-solargraph.sh
blob: b6c5066ea985d5e6f965037c424c33639c9f1359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

git clone "https://github.com/castwide/solargraph" .
bundle install --path vendor/bundle

cat <<EOF > solargraph
#!/bin/sh

DIR=\$(cd \$(dirname \$0); pwd)
cd \$DIR && bundle exec ruby \$DIR/bin/solargraph stdio
EOF

chmod +x solargraph