Sha256: 439c7916f508043d5808fdd9cafc3c15450b724261df1a60dbfda1a63e269899

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 Bytes

Contents

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

require 'natives/catalog'

if node['natives']['configs']['update_provider']
  include_recipe('homebrew') if use_homebrew?
  include_recipe('apt') if use_apt?
end

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']['configs']['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

2 entries across 2 versions & 1 rubygems

Version Path
natives-0.4.1 chef/cookbooks/natives/recipes/default.rb
natives-0.4.0 chef/cookbooks/natives/recipes/default.rb