0.0
No commit activity in last 3 years
No release in over 3 years
Guard::Mouch runs mouch's push automatically
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

guard-mouch

A Ruby GEM Guard::Mouch that runs mouch’s push automatically on change, using Guard.

Dependencies

Installation

gem install guard-mouch

Usage

In your Guardfile:

guard "mouch", :url=>"http://admin:admin@localhost:5984/mouch-test" do
  watch(%r{^src/couchapp/(.+)\..*$})
end

With this guard-mouch will automatically push the app to CouchDB when needed (i.e. on change).

Options

There are three options:

url - CouchDB server url to push to. Allows for passing the credentials in the URL.

mouch_cmd_file - file path to the mouch ruby script. Defaults to mouch in the current directory.

mouch_config_file - file path to mouch's app configuration. Defaults to app.json.erb in the current directory.

guard "mouch", :mouch_cmd_file => "src/couchapp/mouch", :mouch_config_file=>"src/couchapp/app.json.erb", :url=>"http://admin:admin@localhost:5984/mouch-test" do
  watch(%r{^src/couchapp/(.+)\..*$})
end