Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Guard::Mouch runs mouch’s push automatically through guard
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
.gitignore
README.markdown
guard-mouch.gemspec

README.markdown

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
Something went wrong with that request. Please try again.