Class: LVM::Wrapper::PVS
- Inherits:
-
Object
- Object
- LVM::Wrapper::PVS
- Includes:
- Reporting
- Defined in:
- lib/lvm/wrapper/pvs.rb
Constant Summary collapse
- BASE_COMMAND =
"pvs #{Reporting::BASE_ARGUMENTS}".freeze
- ATTRIBUTES_FILE =
"pvs.yaml".freeze
- ALLOCATABLE =
pv_attr attribute handling constants roughly by order referenced in lib/report/report.c:360 (_pvstatus_disp)
{ # code says its a boolean "a" => true, }.freeze
- EXPORTED =
{ # code says its a boolean "x" => true, }.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) ⇒ PVS
constructor
A new instance of PVS.
- #list ⇒ Object
Methods included from Reporting
Constructor Details
#initialize(options) ⇒ PVS
Returns a new instance of PVS.
12 13 14 15 |
# File 'lib/lvm/wrapper/pvs.rb', line 12 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.
9 10 11 |
# File 'lib/lvm/wrapper/pvs.rb', line 9 def attributes @attributes end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/lvm/wrapper/pvs.rb', line 10 def command @command end |