Skip to content
Be able to install gem from a git repository with gem_package or chef_gem
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries
providers
recipes
resources
test/cookbooks/gem_specific_install_test
.gitignore
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
Gemfile
LICENSE
README.md
Rakefile
Thorfile
Vagrantfile
chefignore
metadata.rb

README.md

gem_specific_install cookbook

Requirements

Cookbooks

  • git

Usage

This will maintain a Git repo on /var/chef/cache and will update only if needed

include_recipe "gem_specific_install"
gem_specific_install "inifile" do
  repository "https://github.com/optiflows/inifile.git"
  revision "master"
end

These commands will run gem specific_install:

include_recipe "gem_specific_install"
chef_gem "inifile" do
  provider Chef::Provider::Package::Rubygems::SpecificInstall
  options( :repo => "https://github.com/optiflows/inifile.git")
end
include_recipe "gem_specific_install"
gem_package "inifile" do
  provider Chef::Provider::Package::Rubygems::SpecificInstall
  options( :repo => "https://github.com/optiflows/inifile.git", :branch => "master")
end

Attributes

Recipes

Author

Author:: Guilhem Lettron (guilhem.lettron@optiflows.com)

You can’t perform that action at this time.