include Chef::Mixin::ShellOut
module MacOS
module XCVersion
class << self
def xcversion
'/opt/chef/embedded/bin/xcversion '.freeze
end
def update
xcversion + 'update'
def list_simulators
xcversion + 'simulators'
def install_simulator(simulator)
xcversion + "simulators --install='#{simulator.version}'"
def list_xcodes
xcversion + 'list'
def install_xcode(xcode)
xcversion + "install '#{xcode.version}'"
def installed_xcodes
xcversion + 'installed'
Chef::Recipe.include(MacOS)
Chef::Resource.include(MacOS)