Sha256: 877594db350c9c67f79caff96c32ce549a6080febedb21b29b94f31d3e3da43d

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

require 'chef_fs/data_handler/data_handler_base'

module ChefFS
  module DataHandler
    class UserDataHandler < DataHandlerBase
      def normalize(user, entry)
        super(user, {
          'name' => remove_dot_json(entry.name),
          'admin' => false
        })
      end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
knife-essentials-0.9.4 lib/chef_fs/data_handler/user_data_handler.rb
knife-essentials-0.9.3 lib/chef_fs/data_handler/user_data_handler.rb
knife-essentials-0.9.2 lib/chef_fs/data_handler/user_data_handler.rb
knife-essentials-0.9.1 lib/chef_fs/data_handler/user_data_handler.rb
knife-essentials-0.9.0 lib/chef_fs/data_handler/user_data_handler.rb