Class: SMPTool::CLI::VolumeSpecsInterface
- Inherits:
-
Object
- Object
- SMPTool::CLI::VolumeSpecsInterface
- Defined in:
- lib/smp_tool/cli/volume_specs_interface.rb
Instance Method Summary collapse
- #bootloader ⇒ Object
- #home_block ⇒ Object
-
#initialize(basic:, n_clusters:, n_dir_segs:, n_cls_per_dir_seg:, bootloader:) ⇒ VolumeSpecsInterface
constructor
A new instance of VolumeSpecsInterface.
- #volume_params ⇒ Object
Constructor Details
#initialize(basic:, n_clusters:, n_dir_segs:, n_cls_per_dir_seg:, bootloader:) ⇒ VolumeSpecsInterface
Returns a new instance of VolumeSpecsInterface.
6 7 8 9 10 11 12 13 14 |
# File 'lib/smp_tool/cli/volume_specs_interface.rb', line 6 def initialize(basic:, n_clusters:, n_dir_segs:, n_cls_per_dir_seg:, bootloader:) @basic = basic.downcase @n_clusters = n_clusters.to_i @n_dir_segs = n_dir_segs.to_i @n_cls_per_dir_seg = n_cls_per_dir_seg.to_i @bootloader = bootloader.downcase @namespace = _basic_namespace end |
Instance Method Details
#bootloader ⇒ Object
16 17 18 |
# File 'lib/smp_tool/cli/volume_specs_interface.rb', line 16 def bootloader _choose_bootloader end |
#home_block ⇒ Object
20 21 22 |
# File 'lib/smp_tool/cli/volume_specs_interface.rb', line 20 def home_block @namespace::HOME_BLOCK end |
#volume_params ⇒ Object
24 25 26 |
# File 'lib/smp_tool/cli/volume_specs_interface.rb', line 24 def volume_params _volume_params end |