Class: OsCtl::Image::Operations::Image::FixFileCapabilities::FileCapability
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Image::Operations::Image::FixFileCapabilities::FileCapability
- Defined in:
- lib/osctl/image/operations/image/fix_file_capabilities.rb
Instance Attribute Summary collapse
-
#caps ⇒ Object
Returns the value of attribute caps.
-
#file ⇒ Object
Returns the value of attribute file.
-
#flags ⇒ Object
Returns the value of attribute flags.
Instance Method Summary collapse
Instance Attribute Details
#caps ⇒ Object
Returns the value of attribute caps
16 17 18 |
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16 def caps @caps end |
#file ⇒ Object
Returns the value of attribute file
16 17 18 |
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16 def file @file end |
#flags ⇒ Object
Returns the value of attribute flags
16 17 18 |
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16 def flags @flags end |
Instance Method Details
#setcap ⇒ Object
17 18 19 |
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 17 def setcap "#{caps.join(',')}=#{flags}" end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 21 def to_s "#{file} #{setcap}" end |