Sha256: f83c2fd03fbfa6842fb7fd2af47a9f52a3ae310815b94b7d106ac42f6c7c79f2

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 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)

  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.1 chef-solo/cookbooks/natives/recipes/default.rb