Update build-essential cookbook
This commit is contained in:
@@ -84,7 +84,7 @@ EOH
|
||||
Chef::Log.warn <<-EOH
|
||||
node['build-essential']['compiletime'] has been deprecated. Please use
|
||||
node['build-essential']['compile_time'] instead. I have gracefully converted the
|
||||
attribute for you, but this warning and converstion will be removed in the next
|
||||
attribute for you, but this warning and conversion will be removed in the next
|
||||
major release of the build-essential cookbook.
|
||||
EOH
|
||||
node.default['build-essential']['compile_time'] = node['build-essential']['compiletime']
|
||||
@@ -107,7 +107,7 @@ EOH
|
||||
def method_missing(m, *args, &block)
|
||||
resource = @recipe.send(m, *args, &block)
|
||||
if resource.is_a?(Chef::Resource)
|
||||
actions = Array(resource.action)
|
||||
actions = Array(resource.action)
|
||||
resource.action(:nothing)
|
||||
|
||||
actions.each do |action|
|
||||
|
||||
@@ -112,7 +112,7 @@ class Chef
|
||||
when 10.8
|
||||
'http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_mountain_lion_march_2014.dmg'
|
||||
else
|
||||
raise "Unknown DMG download URL for OSX #{node['platform_version']}"
|
||||
fail "Unknown DMG download URL for OSX #{node['platform_version']}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -143,7 +143,7 @@ class Chef
|
||||
# @return [void]
|
||||
#
|
||||
def attach
|
||||
execute %|hdiutil attach "#{dmg_cache_path}" -mountpoint "#{mount_path}"|
|
||||
execute %(hdiutil attach "#{dmg_cache_path}" -mountpoint "#{mount_path}")
|
||||
end
|
||||
|
||||
#
|
||||
@@ -161,7 +161,7 @@ class Chef
|
||||
# @return [void]
|
||||
#
|
||||
def detach
|
||||
execute %|hdiutil detach "#{mount_path}"|
|
||||
execute %(hdiutil detach "#{mount_path}")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -176,7 +176,6 @@ class Chef
|
||||
# This script was graciously borrowed and modified from Tim Sutton's
|
||||
# osx-vm-templates at https://github.com/timsutton/osx-vm-templates/blob/b001475df54a9808d3d56d06e71b8fa3001fff42/scripts/xcode-cli-tools.sh
|
||||
execute 'install XCode Command Line tools' do
|
||||
# rubocop:disable Metrics/LineLength
|
||||
command <<-EOH.gsub(/^ {14}/, '')
|
||||
# create the placeholder file that's checked by CLI updates' .dist code
|
||||
# in Apple's SUS catalog
|
||||
|
||||
Reference in New Issue
Block a user