Sha256: 45284290607c1466418bd6a463b8e635456eb6b3f8c0c3f617268fae0cc22565

Contents?: true

Size: 669 Bytes

Versions: 78

Compression:

Stored size: 669 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),
            'admin' => false,
            'json_class' => 'Chef::WebUIUser',
            'chef_type' => 'webui_user',
            'salt' => nil,
            'password' => nil,
            'openid' => nil
          })
        end

        def preserve_key(key)
          return key == 'name'
        end

        # There is no chef_class for users, nor does to_ruby work.
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
chef-12.0.0.alpha.0 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.rc.2-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.rc.2 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.4 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.4-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.8-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.8 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.3-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.3 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.2-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.14.0.alpha.2 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.4-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.4 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.4.rc.2-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.4.rc.2 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.2-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.2 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.0-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.0 lib/chef/chef_fs/data_handler/user_data_handler.rb
chef-11.12.0.rc.1-x86-mingw32 lib/chef/chef_fs/data_handler/user_data_handler.rb