Last active
January 4, 2016 10:08
-
-
Save zerowidth/8606364 to your computer and use it in GitHub Desktop.
stripe ctf level 3 loves ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Add or modify any build steps you need here | |
cd "$(dirname "$0")" | |
ruby --version | |
mkdir -p ./gems | |
gem install bundler --install-dir=./gems | |
export GEM_HOME=./gems | |
./gems/bin/bundler install | |
ruby test.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
set -x | |
if `which bundle`; | |
then | |
ruby app.rb $@ | |
else | |
GEM_HOME=./gems ruby app.rb $@ | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "bundler/setup" | |
require "sinatra/base" | |
STDERR.puts "ALL GOOD YO" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment