Sha256: 0b3aa54f36ec87937c12fa879e14157f6e51e344a0f09f49daa1fde837ced423

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 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.first)
  packages.each do |package_name|
    package package_name do
      action :install
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
natives-0.1.2 chef-solo/cookbooks/natives/recipes/default.rb