Project

restart

0.0
No commit activity in last 3 years
No release in over 3 years
On MS Windows, restart runs your shell command, then re-runs it any time filesystem change is detected. For example, "restart ruby test.rb" will run "ruby test.rb", then re-run it after test.rb file changes (or any other files change in current working directory or any subdirectories under it).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 3.0
 Project Readme

Restart

On MS Windows, restart runs your shell command, then re-runs it any time filesystem change is detected.

EXAMPLE: restart ruby test.rb

This will run ruby test.rb, then re-run it after the test.rb file changes (or any other files change in current working directory or any subdirectories under it).

Installation

gem install restart

It is highly recommended that you also install the wdm gem, which enables listen to receive filesystem event notifications from Windows instead of polling the filesystem for changes:

gem install wdm

Usage

restart [options] <your shell command>

OPTIONS:
  -d, --dir DIR[,DIR...]       Directory tree to watch for filesystem changes.
                               Examples:
                                 restart -d app rackup
                                 restart -d .,../test,../lib rake test
                                 restart -d .,../test -d../lib rake test
                                 restart -d . -d ../test -d ../lib rake test

  -f, --file EXT[,EXT...]      Only watch files with given extension, plus files
                               with matching name that do not have an extension.
                               Examples:
                                 restart -f Rakefile rake
                                 restart -f rb ruby test.rb
                                 restart -f rb,yml ruby app.rb
                                 restart -f rb -f yml ruby app.rb

  -i, --ignore REGX[,REGX...]  Ignore file paths matching regular expression.
                               Examples:
                                 restart -i \.pid$,\.coffee$
                                 restart -i \.pid$ -i \.coffee$

  -c, --clear                  Clear screen between each run.
  -e, --explain                Show current values for all options and quit.
  -v, --version                Display version and quit.
  -h, --help                   Display this help message and quit.