A simple WT script to print CPU name.
Jump to code: cpuinfo.rb, cpuinfo_spec.rb.
- The script obtains and prints CPU name to console.
- Unix and Windows platforms are supported.
- If the script is run interactively, CPU name is printed in bold. Otherwise it's plain text.
- The script has substantial test coverage.
- The script manages its dependencies via own Gemfile.
- Convenience setup scripts are provided for all supported platforms.
- The package has complete docs by Yard or compatible generator.
-
Obtain:
$ git clone https://github.com/dadooda/wt $ cd wt/demos/cpuinfo
All commands below assume that current directory is
wt/demos/cpuinfo
. -
Set up:
$ bin/setup-cpuinfo
On Windows:
bin\setup-cpuinfo.cmd
. -
Test:
$ bundle exec rspec
-
Run:
$ bin/cpuinfo