Code Monkey home page Code Monkey logo

git_update's Introduction

update - Update Trees of Git Repos Gem Version

This Ruby gem installs the git-update command, which scans git directory trees and updates them. Directories containing a file called .ignore are ignored.

Usage

The git-update command requires at least one parameter: the names of the top-level directories to update.

The following updates the directory tree of git repos under the /data/work directory:

$ git update /data/work

The following accomplishes the same thing:

$ export work=/data/work

$ git update $work

The following accomplishes the same thing:

$ git-update $work

The following updates the directory trees of git repos pointed to by $work and $sites:

$ export work=/data/work

$ export sites=/var/www

$ git update $work $sites

Installation

Type the following at a shell prompt:

$ gem install git_tree

Additional Information

More information is available on Mike Slinn’s website

Development

After checking out the repo, run bin/setup to install dependencies.

You can run bin/console for an interactive prompt that will allow you to experiment.

$ bin/console
irb(main):001:0> GitUpdate.command_update '/var/www'

Build and Install Locally

To build and install this gem onto your local machine, run:

$ bundle exec rake install

Examine the newly built gem:

$ gem info git_update

*** LOCAL GEMS ***
git_update (0.1.0)
    Author: Mike Slinn
    Homepage:
    https://github.com/mslinn/git_update
    License: MIT
    Installed at: /home/mslinn/.gems

Build and Push to RubyGems

To release a new version:

  1. Update the version number in version.rb.

  2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.

  3. Run the following:

    $ bundle exec rake release

    The above creates a git tag for the version, commits the created tag, and pushes the new .gem file to RubyGems.org.

Contributing

  1. Fork the project
  2. Create a descriptively named feature branch
  3. Add your feature
  4. Submit a pull request

License

The gem is available as open source under the terms of the MIT License.

git_update's People

Contributors

mslinn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.