Skip to content

ZinChen/bakery-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bakery

Ruby console app + Docker

Algorithm solves task of breakdown needed product quantity into packs.

Setup

Usage

  • Run docker container, script will run immediately

      docker-compose run shell
  • Input required quantity of a product and it's code

      13 CF
  • If the product code is correct and quantity can be split in packages you will see correct result

  • If the input is incorrect in some way you will see an error message

Run tests

  docker-compose run shell rspec

Run rubocop linter

  docker-compose run shell rubocop

Open shell with runnable environment

  docker-compose run shell sh

Cleanup docker containers

  docker container prune

About

Ruby console app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors