Code Monkey home page Code Monkey logo

cocoapods-sync-githooks's Introduction

cocoapods-sync-githooks

cocoapods-sync-githooks is a CocoaPods plugin to sync git hooks. Manage shared githooks scripts through the Pod library, even in different repositories.

Installation

Install with gem install

$ gem install cocoapods-sync-githooks

or add cocoapods-sync-githooks to the Gemfile:

gem 'cocoapods-sync-githooks'

Usage

  1. Add cocoapods-sync-githooks to your Podfile:
platform :ios, '9.0'

plugin 'cocoapods-sync-githooks'

target 'SyncGithooksDemo' do
end
  1. Add pods of git hooks under Githooks abstract_target.
abstract_target 'Githooks' do
  pod 'githooksA', git: 'https://github.com/dirtmelon/githooksA.git'
  pod 'githooksB', git: 'https://github.com/dirtmelon/githooksB.git'
end
  1. Edit scripts of git hooks in different pods. The git hooks script needs to be placed in the githooks directory. You can also put the script in the scripts directory, then call in the script of git hooks .
// pre-commit, much use ${script_directory} to get correct directory.
ruby ${script_directory}/Test.rb

Demo and git hooks pods:

SyncGithooksDemo

GithooksA

GithooksB

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.