Sha256: 709785d1080dd1e16b852b818b55374fd3186629d20c8153ebdccb8fa0077e1c

Contents?: true

Size: 608 Bytes

Versions: 5

Compression:

Stored size: 608 Bytes

Contents

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

    schema do
      attribute :name,                type: String, primary: true, required: true
      attribute :json_class,          type: String, default: "Chef::Role"
      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

5 entries across 5 versions & 1 rubygems

Version Path
chef-api-0.9.0 lib/chef-api/resources/role.rb
chef-api-0.8.0 lib/chef-api/resources/role.rb
chef-api-0.7.1 lib/chef-api/resources/role.rb
chef-api-0.7.0 lib/chef-api/resources/role.rb
chef-api-0.6.0 lib/chef-api/resources/role.rb