Skip to content

Latest commit

 

History

History

cpuinfo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WT demo: cpuinfo

Overview

A simple WT script to print CPU name.

Jump to code: cpuinfo.rb, cpuinfo_spec.rb.

Specification

  1. The script obtains and prints CPU name to console.
    1. Unix and Windows platforms are supported.
  2. If the script is run interactively, CPU name is printed in bold. Otherwise it's plain text.
  3. The script has substantial test coverage.
  4. The script manages its dependencies via own Gemfile.
    1. Convenience setup scripts are provided for all supported platforms.
  5. The package has complete docs by Yard or compatible generator.

Usage

  1. Obtain:

    $ git clone https://github.com/dadooda/wt
    $ cd wt/demos/cpuinfo

    All commands below assume that current directory is wt/demos/cpuinfo.

  2. Set up:

    $ bin/setup-cpuinfo

    On Windows: bin\setup-cpuinfo.cmd.

  3. Test:

    $ bundle exec rspec
  4. Run:

    $ bin/cpuinfo