Class: OsCtl::Image::Operations::Image::FixFileCapabilities::FileCapability

Inherits:
Struct
  • Object
show all
Defined in:
lib/osctl/image/operations/image/fix_file_capabilities.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#capsObject

Returns the value of attribute caps

Returns:

  • (Object)

    the current value of caps



16
17
18
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16

def caps
  @caps
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



16
17
18
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16

def file
  @file
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



16
17
18
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 16

def flags
  @flags
end

Instance Method Details

#setcapObject



17
18
19
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 17

def setcap
  "#{caps.join(',')}=#{flags}"
end

#to_sObject



21
22
23
# File 'lib/osctl/image/operations/image/fix_file_capabilities.rb', line 21

def to_s
  "#{file} #{setcap}"
end