Sha256: 562dec313a19a67b109d7165b60ef77a1a1f7aa34218575f3faf6f11509c5409
Contents?: true
Size: 778 Bytes
Versions: 87
Compression:
Stored size: 778 Bytes
Contents
require "chef/chef_fs/data_handler/data_handler_base" class Chef module ChefFS module DataHandler class UserDataHandler < DataHandlerBase def normalize(user, entry) normalize_hash(user, { "name" => remove_dot_json(entry.name), "username" => remove_dot_json(entry.name), "display_name" => remove_dot_json(entry.name), "admin" => false, "json_class" => "Chef::WebUIUser", "chef_type" => "webui_user", "salt" => nil, "password" => nil, "openid" => nil, }) end def preserve_key?(key) key == "name" end # There is no chef_class for users, nor does to_ruby work. end end end end
Version data entries
87 entries across 87 versions & 1 rubygems