Sha256: d57482df74302cdcd4ff7c3aaeebf4ada20b4d8e7da7c79d539d354a22dff4fe

Contents?: true

Size: 629 Bytes

Versions: 5

Compression:

Stored size: 629 Bytes

Contents

#
# Cookbook Name:: natives
# Recipe:: default
#
# Copyright (C) 2013 YOUR_NAME
#
# All rights reserved - Do Not Redistribute
#

require 'natives/catalog'

include_recipe 'homebrew' if use_homebrew?
include_recipe 'apt' if use_apt?

natives_install_list.each do |catalog_name, entries|
  catalog = Natives::Catalog.new(
    catalog_name,
    node[:platform], node[:platform_version],
    current_package_provider,
    working_dir: node['natives']['config']['working_dir']
  )

  packages = catalog.native_packages_for(entries)
  packages.each do |package_name|
    package package_name do
      action :install
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
natives-0.3.0 chef/cookbooks/natives/recipes/default.rb
natives-0.2.2 chef/cookbooks/natives/recipes/default.rb
natives-0.2.1 chef/cookbooks/natives/recipes/default.rb
natives-0.2.0 chef-solo/cookbooks/natives/recipes/default.rb
natives-0.1.3 chef-solo/cookbooks/natives/recipes/default.rb