Sha256: 67ae136b27f10c7e6d35372b5bd9aebc5dcf7766b22f8cfea69a70ae2536e806

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 Bytes

Contents

module ChefAPI
  class Resource::Role < Resource::Base
    collection_path '/roles'

    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 :run_list,            type: Array,  default: []
      attribute :env_run_lists,       type: Hash,   default: {}
    end

    has_many :environments
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chef-api-0.5.0 lib/chef-api/resources/role.rb
chef-api-0.4.1 lib/chef-api/resources/role.rb
chef-api-0.4.0 lib/chef-api/resources/role.rb
chef-api-0.3.0 lib/chef-api/resources/role.rb
chef-api-0.2.1 lib/chef-api/resources/role.rb
chef-api-0.2.0 lib/chef-api/resources/role.rb