methods/in_common.rb
# Check ISO mounted for OS X based server
Check ISO mounted for OS X based server
Check ISO mounted for OS X based server
def check_osx_iso_mount(options)
  check_dir_exists(options,options['mountdir'])
  test_dir = options['mountdir']+"/boot"
  if not File.directory?(test_dir)
    message = "Mounting:\ISO "+options['file']+" on "+options['mountdir']
    command = "hdiutil mount #{options['file']} -mountpoint #{options['mountdir']}"
    output  = execute_command(options,message,command)
  end
  return output
end
def check_osx_iso_mount ( options ) check_dir_exists ( options , options [ 'mountdir' ] ) test_dir = options [ 'mountdir' ] + "/boot" if not File . directory? ( test_dir ) message = "Mounting:\ISO " + options [ 'file' ] + " on " + options [ 'mountdir' ] command = "hdiutil mount #{options['file']} -mountpoint #{options['mountdir']}" output = execute_command ( options , message , command ) end return output end
Check ISO mounted for OS X based server
Check ISO mounted for OS X based server
options
<not_specific>