Sha256: 01921a120a5da4b0bfc96ef72880ddc778467c7b4419aab78e77a0831df8491d

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

#
# Cookbook Name:: git
# Recipe:: default
#
# Copyright 2008-2009, 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.

case node['platform_family']
when "debian"
  if node['platform'] == "ubuntu" && node['platform_version'].to_f < 10.10
    package "git-core"
  else
    package "git"
  end
when "rhel","fedora"
  case node['platform_version'].to_i
  when 5
    include_recipe "yum::epel"
  end
  package "git"
when "windows"
  include_recipe 'git::windows'
when "mac_os_x"
  dmg_package "GitOSX-Installer" do
    app node['git']['osx_dmg']['app_name']
    package_id node['git']['osx_dmg']['package_id']
    volumes_dir node['git']['osx_dmg']['volumes_dir']
    source node['git']['osx_dmg']['url']
    checksum node['git']['osx_dmg']['checksum']
    type "pkg"
    action :install
  end
else
  package "git"
end

Version data entries

6 entries across 5 versions & 3 rubygems

Version Path
fast_food-0.1.2 chef/cookbooks/git/recipes/default.rb
fast_food-0.1.1 chef/cookbooks/git/recipes/default.rb
fast_food-0.1.0 chef/cookbooks/git/recipes/default.rb
guard-strainer-1.0.0 spec/fixtures/cookbooks/git/recipes/default.rb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/git/version-uri/306302c1591982b67153d5c49a36c542/package/recipes/default.rb
vagrant-openstack-0.0.4 cookbooks/git/recipes/default.rb