Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.43 KB

README.md

File metadata and controls

58 lines (47 loc) · 1.43 KB

windows-shutdown-timer

Keep your Windows machine awake until elapsed time, then shut it down.

Useful for when you are doing something like downloading large files or installing a program.

This builds upon the functionality of Insomnia, which can keep your machine awake as long as its window is open.

Build Status Gem

Setup

Install the gem:

gem install windows-shutdown-timer

Usage

After install, run

windows-shutdown-timer

from cmd. Follow the prompts. You can also run:

windows-shutdown-timer 120

which would shut down your machine after 120 minutes of keeping it awake.

To cancel a pending shutdown:

windows-shutdown-timer -c

And if you just want to run Insomnia

windows-shutdown-timer -1

Dev Notes

You can ignore these, if you are not developing this gem

Testing Locally

If first run:

bundler

Then:

ruby /test/test.rb

Deployment

  1. Adjust the version in the gemspec
  2. gem build windows-shutdown-timer.gemspec
  3. gem push windows-shutdown-timer-version.number.here.gem
  4. Tag release in git

License

windows-shutdown-timer is available under the MIT license. See the LICENSE file for more info.