Sha256: dafb8c6bd8f2e8b8d4938621839b09301d19a9cd155bc839d1f59c4a36379707

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

module ChefAPI
  class Resource::Environment < Resource::Base
    collection_path "/environments"

    schema do
      attribute :name,                type: String, primary: true, required: true
      attribute :description,         type: String
      attribute :default_attributes,  type: Hash,   default: {}
      attribute :override_attributes, type: Hash,   default: {}
      attribute :cookbook_versions,   type: Hash,   default: {}
    end

    has_many :cookbooks
    has_many :nodes
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

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