This is a Ruby client script written to perform the AdHoc homework specified here: https://homework.adhoc.team/noclist/
-
First, ensure that you have the BADSEC server running locally by following AdHoc's instructions.
-
Ensure you have your local Ruby environment set up to use
ruby-2.6.5
and the bundler gem. -
Pull down the project
-
In your command console, run:
bundle install ruby exe/execute_script.rb
The user list output will appear in the console if the script runs successfully. Otherwise, there will be error logs, and the script will exit after unsuccessfully retrying either of the two requests 2 times.
In your command console, run:
rspec
or if that isn't working,
bundle exec rspec