cookbook 'mercurial', '~> 2.0.4'
mercurial (8) Versions 2.0.4 Follow13
Installs mercurial
cookbook 'mercurial', '~> 2.0.4', :supermarket
knife supermarket install mercurial
knife supermarket download mercurial
Description
Installs mercurial
Requirements
Requires Chef 11 for use_inline_resources
in LWRP.
Cookbooks
- python
- build-essential
Attributes
-
node["hg"]["install_method"]
- method to install mercurial with, you can choose from "package" and "pip". defaultpackage
.
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://hg@bitbucket.org/niallsco/chef-hg"
reference "tip"
key "/home/site/.ssh/keyname"
action :sync
end
License and Author
Mercurial LWRP originally by: Niall Napier niall@napes.co.uk
Author:: Joshua Timberman joshua@opscode.com
Author:: Mark Roddy markroddy@gmail.com
Author:: Takeshi KOMIYA i.tkomiya@gmail.com
Author:: Guilhem Lettron guilhem@lettron.fr
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.
Collaborator Number Metric
2.0.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.4 failed this metric
FC064: Ensure issues_url is set in metadata: mercurial/metadata.rb:1
FC065: Ensure source_url is set in metadata: mercurial/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mercurial/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mercurial/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mercurial/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: mercurial/recipes/pip.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.4 passed this metric
Testing File Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.4 failed this metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.4 failed this metric
FC064: Ensure issues_url is set in metadata: mercurial/metadata.rb:1
FC065: Ensure source_url is set in metadata: mercurial/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mercurial/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mercurial/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mercurial/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: mercurial/recipes/pip.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.4 passed this metric
Testing File Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.4 failed this metric
FC065: Ensure source_url is set in metadata: mercurial/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mercurial/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mercurial/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mercurial/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: mercurial/recipes/pip.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.0.4 passed this metric
Testing File Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.4 failed this metric
2.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number