Class: Dcmgr::Rpc::HvaContext
- Inherits:
-
Object
- Object
- Dcmgr::Rpc::HvaContext
- Defined in:
- lib/dcmgr/rpc/hva_handler.rb
Instance Method Summary collapse
- #bridge_if ⇒ Object
-
#initialize(hvahandler) ⇒ HvaContext
constructor
A new instance of HvaContext.
- #inst ⇒ Object
- #inst_data_dir ⇒ Object
- #inst_id ⇒ Object
- #node ⇒ Object
- #os_devpath ⇒ Object
- #vol ⇒ Object
Constructor Details
#initialize(hvahandler) ⇒ HvaContext
Returns a new instance of HvaContext.
353 354 355 356 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 353 def initialize(hvahandler) raise "Invalid Class: #{hvahandler}" unless hvahandler.instance_of?(HvaHandler) @hva = hvahandler end |
Instance Method Details
#bridge_if ⇒ Object
374 375 376 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 374 def bridge_if @hva.instance_variable_get(:@bridge_if) end |
#inst ⇒ Object
366 367 368 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 366 def inst @hva.instance_variable_get(:@inst) end |
#inst_data_dir ⇒ Object
382 383 384 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 382 def inst_data_dir File.("#{inst_id}", node.manifest.config.vm_data_dir) end |
#inst_id ⇒ Object
362 363 364 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 362 def inst_id @hva.instance_variable_get(:@inst_id) end |
#node ⇒ Object
358 359 360 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 358 def node @hva.instance_variable_get(:@node) end |
#os_devpath ⇒ Object
370 371 372 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 370 def os_devpath @hva.instance_variable_get(:@os_devpath) end |
#vol ⇒ Object
378 379 380 |
# File 'lib/dcmgr/rpc/hva_handler.rb', line 378 def vol @hva.instance_variable_get(:@vol) end |