Sha256: ea44ff2457683197a93a20ec3808505302f11adcafeb40b535994e685e784721

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

module ChefAPI
  class Resource::Role < Resource::Base
    include ChefAPI::AclAble
    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

3 entries across 3 versions & 2 rubygems

Version Path
chef-infra-api-0.10.0 lib/chef-api/resources/role.rb
chef-api-0.10.0 lib/chef-api/resources/role.rb
chef-infra-api-0.9.1 lib/chef-api/resources/role.rb