Class: LVM::Wrapper::LVSSEG
- Inherits:
-
Object
- Object
- LVM::Wrapper::LVSSEG
- Includes:
- Reporting
- Defined in:
- lib/lvm/wrapper/lvsseg.rb
Overview
segment output is very different in that its multi line, easier to treat as own command
Constant Summary collapse
- BASE_COMMAND =
"lvs #{Reporting::BASE_ARGUMENTS}".freeze
- ATTRIBUTES_FILE =
"lvsseg.yaml".freeze
Constants included from Reporting::Constants
Reporting::Constants::BASE_ARGUMENTS, Reporting::Constants::EMPTY, Reporting::Constants::SEPERATOR
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(options) ⇒ LVSSEG
constructor
A new instance of LVSSEG.
- #list ⇒ Object
Methods included from Reporting
Constructor Details
#initialize(options) ⇒ LVSSEG
Returns a new instance of LVSSEG.
13 14 15 16 |
# File 'lib/lvm/wrapper/lvsseg.rb', line 13 def initialize() @attributes = Attributes.load([:version], ATTRIBUTES_FILE) @command = "#{[:command]} #{Reporting.build_command(attributes, BASE_COMMAND, [:additional_arguments])}" end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/lvm/wrapper/lvsseg.rb', line 10 def attributes @attributes end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
11 12 13 |
# File 'lib/lvm/wrapper/lvsseg.rb', line 11 def command @command end |