Sha256: fcf38415b502e6a84a344680e4797ff2dc214e15e4a3dc3d041ff264d456a64f

Contents?: true

Size: 570 Bytes

Versions: 11

Compression:

Stored size: 570 Bytes

Contents

module ChefAPI
  class Resource::Node < Resource::Base
    collection_path '/nodes'

    schema do
      attribute :name,       type: String, primary: true, required: true
      attribute :automatic,  type: Hash,   default: {}
      attribute :default,    type: Hash,   default: {}
      attribute :normal,     type: Hash,   default: {}
      attribute :override,   type: Hash,   default: {}
      attribute :run_list,   type: Array,  default: []

      # Enterprise Chef attributes
      attribute :chef_environment, type: String, default: '_default'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
chef-api-0.9.0 lib/chef-api/resources/node.rb
chef-api-0.8.0 lib/chef-api/resources/node.rb
chef-api-0.7.1 lib/chef-api/resources/node.rb
chef-api-0.7.0 lib/chef-api/resources/node.rb
chef-api-0.6.0 lib/chef-api/resources/node.rb
chef-api-0.5.0 lib/chef-api/resources/node.rb
chef-api-0.4.1 lib/chef-api/resources/node.rb
chef-api-0.4.0 lib/chef-api/resources/node.rb
chef-api-0.3.0 lib/chef-api/resources/node.rb
chef-api-0.2.1 lib/chef-api/resources/node.rb
chef-api-0.2.0 lib/chef-api/resources/node.rb