Sha256: bc0e12ea5f3b759708527c48ca68337b6a34139fbf267eb431137778c53b8bf3

Contents?: true

Size: 963 Bytes

Versions: 8

Compression:

Stored size: 963 Bytes

Contents

module ChefAPI
  class Resource::CookbookVersion < Resource::Base
    collection_path "/cookbooks/:cookbook"

    schema do
      attribute :name,          type: String,  primary: true, required: true
      attribute :cookbook_name, type: String,  required: true
      attribute :metadata,      type: Hash,    required: true
      attribute :version,       type: String,  required: true
      attribute :frozen?,       type: Boolean, default: false

      attribute :attributes,  type: Array, default: []
      attribute :definitions, type: Array, default: []
      attribute :files,       type: Array, default: []
      attribute :libraries,   type: Array, default: []
      attribute :providers,   type: Array, default: []
      attribute :recipes,     type: Array, default: []
      attribute :resources,   type: Array, default: []
      attribute :root_files,  type: Array, default: []
      attribute :templates,   type: Array, default: []
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
chef-infra-api-0.10.10 lib/chef-api/resources/cookbook_version.rb
chef-api-0.10.10 lib/chef-api/resources/cookbook_version.rb
chef-infra-api-0.10.7 lib/chef-api/resources/cookbook_version.rb
chef-api-0.10.7 lib/chef-api/resources/cookbook_version.rb
chef-infra-api-0.10.5 lib/chef-api/resources/cookbook_version.rb
chef-api-0.10.5 lib/chef-api/resources/cookbook_version.rb
chef-infra-api-0.10.2 lib/chef-api/resources/cookbook_version.rb
chef-api-0.10.2 lib/chef-api/resources/cookbook_version.rb