Sha256: 61c4675401dc8536fc23d0a5abf9a096dfbb740cb59a2f435fc4c035b97d33ee

Contents?: true

Size: 486 Bytes

Versions: 8

Compression:

Stored size: 486 Bytes

Contents

require 'chef_fs/data_handler/data_handler_base'

module ChefFS
  module DataHandler
    class ContainerDataHandler < DataHandlerBase
      def normalize(user, entry)
        super(user, {
          'containername' => remove_dot_json(entry.name),
          'containerpath' => remove_dot_json(entry.name)
        })
      end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
knife-essentials-1.0.0.beta4 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-1.0.0.beta3 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-1.0.0.beta2 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-1.0.0.beta1 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-0.9.8 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-0.9.7 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-0.9.6 lib/chef_fs/data_handler/container_data_handler.rb
knife-essentials-0.9.5 lib/chef_fs/data_handler/container_data_handler.rb