GithubHelp home page GithubHelp logo

crowdmob / chef-mercurial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poise/mercurial

0.0 6.0 0.0 121 KB

Development repository for Opscode Cookbook mercurial

Home Page: http://community.opscode.com/cookbooks/mercurial

License: Apache License 2.0

Ruby 100.00%

chef-mercurial's Introduction

Description

Installs mercurial

Requirements

Cookbooks

  • python

Attributes

  • node["hg"]["install_method"] - method to install mercurial with, you can choose from "package" and "pip". default package.

Usage

default

Install mercurial to make sure it is available to check out code from mercurial repositories. method to install mercurial should be changed with node["hg"]["install_method"].

package

Installs mercurial from packages.

A package named "mercurial" must exist in the platform package management system.

pip

Installs mercurial from pip.

Resource/Provider

This cookbook includes LWRPs for managing: mercurial

mercurial

Actions

  • :clone - this will simply issue a clone of the repository at the revision specified (default tip).
  • :sync - this will issue a clone of the repository if there is nothing at the path specified, otherwise a pull and update will be issued to bring the directory up-to-date.

Parameter Attributes

  • path - Name attribute path where the repository is checked out.
  • repository - Repository to check out
  • reference - Reference in the repository
  • key - a private key on disk to use, for private repositories, must already exist.
  • owner - local user that the clone is run as
  • group - local group that the clone is run as
  • mode - permissions of the cloned repository

Example

mercurial "/home/site/checkouts/www" do
  repository "ssh://[email protected]/niallsco/chef-hg"
  reference "tip"
  key "/home/site/.ssh/keyname"
  action :sync
end

License and Author

Mercurial LWRP originally by: Niall Napier [email protected]

Author:: Joshua Timberman [email protected] Author:: Mark Roddy [email protected] Author:: Takeshi KOMIYA [email protected] Author:: Guilhem Lettron [email protected]

Copyright:: 2009-2013, Opscode, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

chef-mercurial's People

Contributors

guilhem avatar markroddy avatar nathenharvey avatar tk0miya avatar crowdmatt avatar

Watchers

Matthew Moore avatar  avatar  avatar James Cloos avatar  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.