Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Guard::Pow automatically manage Pow applications restart

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib Release 2.0.0
Octocat-spinner-32 spec Rewrite for Guard 2.0
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml Rewrite for Guard 2.0
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Guardfile Rewrite for Guard 2.0
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 guard-pow.gemspec README improvements
README.md

Guard::Pow

Gem Version Build Status Dependency Status Code Climate

Pow guard allows to automatically & intelligently restart your applications (just by touching tmp/restart.txt)

  • Tested on Ruby 1.9.3, 2.0.0, rbx & jruby

Install

Please be sure to have Guard installed before continue.

Install the gem:

gem install guard-pow

Add it to your Gemfile (inside development group):

gem 'guard-pow', require: false

Add guard definition to your Guardfile by running this command:

guard init pow

Usage

Please read Guard usage doc

Guardfile

Pow guard can be really be adapated to all kind of projects. Please read Guard doc for more info about Guardfile DSL.

Rails app

guard 'pow' do
  watch('.powrc')
  watch('.powenv')
  watch('.rvmrc')
  watch('Gemfile')
  watch('Gemfile.lock')
  watch('config/application.rb')
  watch('config/environment.rb')
  watch(%r{^config/environments/.*\.rb$})
  watch(%r{^config/initializers/.*\.rb$})
end

List of available options:

restart_on_start: true   # Restart Pow on Guard start, default: false
restart_on_reload: false # Restart Pow on Guard reload, default: true

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Author

Thibaud Guillaume-Gentil

Something went wrong with that request. Please try again.