Soccer league ranking
Runs a script which calculates league rankings based on match results
The script can be run either directly with ruby or by using docke compose. Either way it takes an input file and output file as arguments.
These default to input.txt
and output.txt
.
In the root folder of the app run
gem install bundler
bundle install
to run the app run
ruby run.rb {input.txt} {output.txt}
In the root folder of the app run
docker-compose build
to run the app run
docker-compose run soccer_league_run {input.txt} {output.txt}
In the root folder of the app run
gem install bundler
bundle install
to run the specs run
bundle exec rspec -fd spec
In the root folder of the app run
docker-compose build
to run the specs
docker-compose run soccer_league_spec