Class: Train::Extras::AixFile
- Inherits:
-
UnixFile
- Object
- FileCommon
- UnixFile
- Train::Extras::AixFile
- Defined in:
- lib/train/extras/file_aix.rb
Constant Summary
Constants inherited from FileCommon
Instance Attribute Summary
Attributes inherited from UnixFile
Instance Method Summary collapse
Methods inherited from UnixFile
#content, #exist?, #file_version, #initialize, #product_version, #stat
Methods inherited from FileCommon
#basename, #block_device?, #character_device?, #directory?, #file?, #grouped_into?, #initialize, #linked_to?, #md5sum, #mode?, #mounted?, #owned_by?, #pipe?, #sha256sum, #socket?, #source, #source_path, #symlink?, #to_json, #type, #unix_mode_mask, #version?
Constructor Details
This class inherits a constructor from Train::Extras::UnixFile
Instance Method Details
#link_path ⇒ Object
8 9 10 11 12 13 |
# File 'lib/train/extras/file_aix.rb', line 8 def link_path return nil unless symlink? @link_path ||= @backend.run_command("perl -e 'print readlink shift' #{@spath}") .stdout.chomp end |
#mounted ⇒ Object
15 16 17 18 |
# File 'lib/train/extras/file_aix.rb', line 15 def mounted @mounted ||= @backend.run_command("lsfs -c #{@spath}") end |