Install jgit.sh Clone from Amazon s3.
jgit "/app/app_name" do
repository "amazon-s3://IAM@backet-name/app.git"
revision "master"
action :sync
end
jgit resource is extend from git resource. see https://docs.getchef.com/resource_git.html
Key | Type | Description | Default |
---|---|---|---|
['jgit']['path'] | String | path to copy jgit binary | "/usr/local/bin/jgit" |
['jgit']['source'] | String | URL of jgit releases | "https://github.com/team-lab/jgit/releases/download/v3.6.0.201411121045-token4-env4/jgit" |
['jgit']['checksum'] | String | checksum of jgit binary | "03548ab0660fb275c5cbf260cb6f7a41412f8fb4b11016ce6025bb2336566b52" |
Just include jgit
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[java]"
"recipe[jgit::install]"
]
}
WARNING : jgit::install is not install 'jre(Java Runtime Environment)', but jgit need jre. you need jre by othre recipe.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Public domain