Skip to content

Zandelok/gifthealth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GiftHealth Engineering Project

Install, run and testing

Requirements:

  • rvm or rbenv
  • ruby 3.0.3
  • bundler version 2.2.32

Pre-run steps:

$ cd gifthealth/

Usage

Grant permissions:

$ chmod +x bin/gifthealth

Running the tests:

$ rspec

Running the script:

$ bin/gifthealth public/pharmacy_system.txt

Usage with Docker

Requirements:

  • docker

Grant permissions:

$ docker build -t gifthealth .

Run Docker

$ docker run -it gifthealth

Running the tests:

rspec

Running the script:

bin/gifthealth public/pharmacy_system.txt

Folders

Bin Folder:

  • gifthealth - a written script for calling a class, to which I will pass the necessary classes as parameters. ARGV - array of arguments that we pass when running the script on the command line (or bash, if you use docker).

Lib Folder:

  • reader.rb
  • data_collector.rb
  • drug_counter.rb
  • total_income.rb
  • printer.rb
  • performance.rb

Public Folder:

  • pharmacy_system.txt - the file with the sample of input data.

Spec Folder:

Bin Folder:

  • Integration test for my script.

Lib Folder:

  • Unit tests for my classes.

Fixtures Folder:

  • test.txt - the file with the test data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published