Giter Club home page Giter Club logo

mestral's Introduction

Mestral

Build Status Coverage Status Code Climate Dependency Status

A hook manager for Git

About

Mestral allows to easily manage your Git hooks. Combine so called hooklets to form the hooks fitting your needs.

Installation

Mestral can be installed via a simple installation script:

$ ruby -e "$(curl -fLsS https://raw.github.com/mestral/mestral/install/install.rb)"

On Unix-like system, this will install Mestral into /usr/local/mestral. On Windows, this will install Mestral into %ALLUSERSPROFILE%/Mestral. An executable called git-hooks will be put into place, so you can run Mestral using $ git hooks.

You can also clone the Git repository and symlink the executable into your $PATH. For example:

$ git clone http://github.com/mestral/mestral.git
$ ln -s mestral/bin/mestral /usr/local/bin/mestral

Additionally, you might want to add it as a command to Git, for example:

$ ln -s mestral/bin/mestral /usr/local/bin/git-hooks

Getting started

Initially, you should add a hook repository, also known as a tape.

$ mestral add-tape https://github.com/mestral/tape

After that, list the available hooklets

$ mestral list

… and enable those you like for the current Git repository:

$ mestral enable pre-commit check-whitespace

Additionally, you can execute a Git hook manually:

$ mestral execute pre-commit

License

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License. A copy of this license can be found in the LICENSE file.

Credits

  • Sebastian Staudt – koraktor(at)gmail.com

mestral's People

Contributors

alexdenisov avatar koraktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mestral's Issues

Installer Error: No such file or directory

Just ran the install script ande received an error. Here's the output from my install.

❯ ruby -e "$(curl -fLsS https://raw.github.com/mestral/mestral/install/install.rb)"
Cloning the Mestral repository to '/usr/local/mestral'
remote: Counting objects: 348, done.
remote: Compressing objects: 100% (201/201), done.
remote: Total 348 (delta 137), reused 344 (delta 133)
Receiving objects: 100% (348/348), 94.29 KiB, done.
Resolving deltas: 100% (137/137), done.
remote: Counting objects: 7468, done.
remote: Compressing objects: 100% (4057/4057), done.
remote: Total 7468 (delta 3657), reused 7044 (delta 3261)
Receiving objects: 100% (7468/7468), 2.56 MiB | 1000 KiB/s, done.
Resolving deltas: 100% (3657/3657), done.
-e:56:in `stat': No such file or directory - /usr/local/heroku/bin (Errno::ENOENT)
    from -e:56:in `block in <main>'
    from -e:55:in `select'
    from -e:55:in `<main>'

Not sure why /usr/local/heroku would be involved.

Homebrew formula missing

Installation script guides me to install mestral via brew intall mestral but formula in Homebrew is not available, even after brew update

Ruby error on "mestral execute-hook" method

Hi,

I've installed mestral today, so i have a fresh install.

I have added mestral-tape, and tryed to execute a hooks, but an error happened :

$ mestral add-tape https://github.com/mestral/tape
Successfully cloned tape 'mestral/tape'.
$ mestral list
List of Git hooks
 - check-bundle-outdated
 - check-ruby-syntax
 - check-whitespace
$ mestral execute-hook check-whitespace
/usr/local/mestral/Library/Mestral/mestral/cli.rb:81:in `execute_hook': undefined method `execute' for nil:NilClass (NoMethodError)
    from /usr/local/mestral/Library/Gems/thor/lib/thor/command.rb:27:in `__send__'
    from /usr/local/mestral/Library/Gems/thor/lib/thor/command.rb:27:in `run'
    from /usr/local/mestral/Library/Gems/thor/lib/thor/invocation.rb:120:in `invoke_command'
    from /usr/local/mestral/Library/Gems/thor/lib/thor.rb:363:in `dispatch'
    from /usr/local/mestral/Library/Gems/thor/lib/thor/base.rb:439:in `start'
    from /usr/local/bin/mestral:40

Mestral was installed via the simple installation script, on a 2013 MacBook Pro, with 10.8.4 MacOS X.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.