call working in kitchen
This commit is contained in:
Родитель
68a2661f03
Коммит
85e2feaacd
|
@ -9,7 +9,7 @@ module MacOS
|
|||
@semantic_version = semantic_version
|
||||
@intended_path = intended_path
|
||||
@download_url = download_url
|
||||
@version = -> { determine_version }.call
|
||||
@version = -> { determine_version }
|
||||
end
|
||||
|
||||
def determine_version
|
||||
|
|
|
@ -42,7 +42,7 @@ module MacOS
|
|||
end
|
||||
|
||||
def install_xcode(xcode)
|
||||
xcversion "install '#{xcode.version}' #{download_url_option(xcode)}".strip
|
||||
xcversion "install '#{xcode.version.call}' #{download_url_option(xcode)}".strip
|
||||
end
|
||||
|
||||
def installed_xcodes
|
||||
|
|
|
@ -33,7 +33,7 @@ action :install_xcode do
|
|||
|
||||
unless xcode.compatible_with_platform?(node['platform_version'])
|
||||
ruby_block 'exception' do
|
||||
raise("Xcode #{xcode.version} not supported on #{node['platform_version']}")
|
||||
raise("Xcode #{new_resource.version} not supported on #{node['platform_version']}")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -44,7 +44,7 @@ action :install_xcode do
|
|||
not_if { xcode.installed? }
|
||||
end
|
||||
|
||||
execute "install Xcode #{xcode.version}" do
|
||||
execute "install Xcode #{new_resource.version}" do
|
||||
developer = DeveloperAccount.new(new_resource.apple_id, new_resource.download_url)
|
||||
command XCVersion.install_xcode(xcode)
|
||||
environment developer.credentials
|
||||
|
|
Загрузка…
Ссылка в новой задаче