Class: Ansible::Ruby::Modules::Xattr
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Xattr
- Defined in:
- lib/ansible/ruby/modules/generated/core/files/xattr.rb
Overview
Manages filesystem user defined extended attributes, requires that they are enabled on the target filesystem and that the setfattr/getfattr utilities are present.
Instance Method Summary collapse
-
#follow ⇒ Boolean?
If yes, dereferences symlinks and sets/gets attributes on symlink target, otherwise acts on symlink itself.
-
#key ⇒ String?
The name of a specific Extended attribute key to set/retrieve.
-
#name ⇒ String
The full path of the file/object to get the facts of.
-
#state ⇒ :read, ...
Defines which state you want to do.
-
#value ⇒ String?
The value to set the named name/key to, it automatically sets the C(state) to ‘set’.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#follow ⇒ Boolean?
Returns if yes, dereferences symlinks and sets/gets attributes on symlink target, otherwise acts on symlink itself.
27 |
# File 'lib/ansible/ruby/modules/generated/core/files/xattr.rb', line 27 attribute :follow |
#key ⇒ String?
Returns The name of a specific Extended attribute key to set/retrieve.
15 |
# File 'lib/ansible/ruby/modules/generated/core/files/xattr.rb', line 15 attribute :key |
#name ⇒ String
Returns The full path of the file/object to get the facts of.
11 |
# File 'lib/ansible/ruby/modules/generated/core/files/xattr.rb', line 11 attribute :name |
#state ⇒ :read, ...
Returns defines which state you want to do. C(read) retrieves the current value for a C(key) (default) C(present) sets C(name) to C(value), default if value is set C(all) dumps all data C(keys) retrieves all keys C(absent) deletes the key.
23 |
# File 'lib/ansible/ruby/modules/generated/core/files/xattr.rb', line 23 attribute :state |
#value ⇒ String?
Returns The value to set the named name/key to, it automatically sets the C(state) to ‘set’.
19 |
# File 'lib/ansible/ruby/modules/generated/core/files/xattr.rb', line 19 attribute :value |