Class: IControl::ARX::FileChangeDefinition
- Inherits:
-
Base::Struct
- Object
- Base::Struct
- IControl::ARX::FileChangeDefinition
- Defined in:
- lib/icontrol/arx.rb,
lib/icontrol/arx.rb
Overview
A structure that contains the details of a file change.
Instance Attribute Summary collapse
-
#dst_link ⇒ String
If this change is for a link to another file on NFS, then the destination link will represent the new path for the target of the link.
-
#dst_path ⇒ String
The file’s new path.
-
#src_link ⇒ String
If this change is for a link to another file on NFS, then the source link will represent the original path for the target of the link.
-
#src_path ⇒ String
The file’s original path.
-
#type ⇒ IControl::ARX::FileChangeType
The type of file change.
Instance Attribute Details
#dst_link ⇒ String
If this change is for a link to another file on NFS, then the destination link will represent the new path for the target of the link. This path can be used to group links that link to the same file. However, this path can only be used as a key to group links during this session because a different path may be used in other sessions.
105 106 107 |
# File 'lib/icontrol/arx.rb', line 105 def dst_link @dst_link end |
#dst_path ⇒ String
The file’s new path. When the file change is FileChangeType ::FILECHANGE_FILE_OTHER, FileChangeType ::FILECHANGE_DIR_OTHER, FileChangeType ::FILECHANGE_FILE_NEW or FileChangeType ::FILECHANGE_DIR_NEW the path is relative to dst_root. However, if the file change is FileChangeType ::FILECHANGE_FILE_RENAME or FileChangeType ::FILECHANGE_DIR_RENAME then it is the full path. For any other file change type, this field is not used.
105 106 107 |
# File 'lib/icontrol/arx.rb', line 105 def dst_path @dst_path end |
#src_link ⇒ String
If this change is for a link to another file on NFS, then the source link will represent the original path for the target of the link. This path can be used to group links that link to the same file. However, this path can only be used as a key to group links during this session because a different path may be used in other sessions.
105 106 107 |
# File 'lib/icontrol/arx.rb', line 105 def src_link @src_link end |
#src_path ⇒ String
The file’s original path. The path is relative to src_root. This field is not used when the file change is either FileChangeType ::FILECHANGE_FILE_NEW or FileChangeType ::FILECHANGE_DIR_NEW.
105 106 107 |
# File 'lib/icontrol/arx.rb', line 105 def src_path @src_path end |
#type ⇒ IControl::ARX::FileChangeType
The type of file change.
105 106 107 |
# File 'lib/icontrol/arx.rb', line 105 def type @type end |