Class: Conjur::DSL2::Types::HostFactory

Inherits:
Record show all
Includes:
ActsAsResource
Defined in:
lib/conjur/dsl2/types/records.rb

Instance Method Summary collapse

Methods included from ActsAsResource

#action, #immutable_attribute_names, included, #initialize, #resource?, #resource_id, #resource_kind, #resourceid, #to_s

Methods inherited from Record

#resource?, #role?

Methods inherited from Base

#custom_attribute_names, #id_attribute, inherited, #referenced_records, register_yaml_type, #resource?, #role?, short_name

Methods included from InheritableAttribute

inherit_for, #inheritable_attr

Methods included from TypeChecking

#expect_array, #expect_boolean, #expect_hash, #expect_integer, #expect_layer, #expect_member, #expect_permission, #expect_record, #expect_resource, #expect_role, #expect_string, #expect_type, #test_resource, #test_role

Methods included from AttributeDefinition

#attribute, #define_field, #define_plural_field, #yaml_field?, #yaml_field_type

Instance Method Details

#role(*args) ⇒ Object



201
202
203
204
205
206
207
# File 'lib/conjur/dsl2/types/records.rb', line 201

def role *args
  if args.empty?
    role_accessor || self.owner
  else
    role_accessor(*args)
  end
end

#role_accessorObject



199
# File 'lib/conjur/dsl2/types/records.rb', line 199

alias role_accessor role