def export_to zip_file
      zip_file = Pathname.new "#{zip_file.to_s}#{zip_file.to_s.match(/\.zip\z/i) ? '' : '.zip'}"
      VALIDATOR.validate_zip_file_export zip_file
      files     = get_files
      @contents = get_contents_from_files(*files)
      config_json_path = get_config_json_path
      @contents[config_json_path] = remove_home_in @contents[config_json_path]
      @contents[MACHINE_NAME_FILENAME] = @machine_name
      write_zip_file_to zip_file
      message(
        "Successfully created zip archive",
        "  `#{zip_file.to_s}'",
        "with the keys and certificates from docker-machine",
        "  `#{@machine_name}'"
      )
    end
def export_to zip_file
      zip_file = Pathname.new "#{zip_file.to_s}#{zip_file.to_s.match(/\.zip\z/i) ? '' : '.zip'}"
      VALIDATOR.validate_zip_file_export zip_file
      files     = get_files
      @contents = get_contents_from_files(*files)
      config_json_path = get_config_json_path
      @contents[config_json_path] = remove_home_in @contents[config_json_path]
      @contents[MACHINE_NAME_FILENAME] = @machine_name
      write_zip_file_to zip_file
      message(
        "Successfully created zip archive",
        "  `#{zip_file.to_s}'",
        "with the keys and certificates from docker-machine",
        "  `#{@machine_name}'"
      )
    end
Initialize with a docker-machine <tt>name</tt>.
 Export certificates for the machine.