Class: VagrantPlugins::AVF::DriverPaths
- Inherits:
-
Object
- Object
- VagrantPlugins::AVF::DriverPaths
- Defined in:
- lib/vagrant_provider_avf/driver_paths.rb
Instance Method Summary collapse
- #cleanup_paths(linux_cloud_init_seed_path:) ⇒ Object
- #console_log_path ⇒ Object
- #efi_variable_store_path_for(boot_config) ⇒ Object
- #error_path ⇒ Object
- #helper_binary_path ⇒ Object
- #helper_entitlements_path ⇒ Object
- #helper_log_path ⇒ Object
- #helper_source_path ⇒ Object
-
#initialize(machine_data_dir) ⇒ DriverPaths
constructor
A new instance of DriverPaths.
- #runtime_disk_path ⇒ Object
- #start_request_path ⇒ Object
- #started_path ⇒ Object
Constructor Details
#initialize(machine_data_dir) ⇒ DriverPaths
Returns a new instance of DriverPaths.
6 7 8 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 6 def initialize(machine_data_dir) @machine_data_dir = Pathname.new(machine_data_dir) end |
Instance Method Details
#cleanup_paths(linux_cloud_init_seed_path:) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 52 def cleanup_paths(linux_cloud_init_seed_path:) [ runtime_disk_path, linux_efi_variable_store_path, linux_cloud_init_seed_path, start_request_path, started_path, error_path, console_log_path, helper_log_path, helper_binary_path ] end |
#console_log_path ⇒ Object
38 39 40 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 38 def console_log_path @machine_data_dir.join("console.log") end |
#efi_variable_store_path_for(boot_config) ⇒ Object
46 47 48 49 50 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 46 def efi_variable_store_path_for(boot_config) return linux_efi_variable_store_path if boot_config.linux_disk_boot? nil end |
#error_path ⇒ Object
34 35 36 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 34 def error_path @machine_data_dir.join("avf-error.txt") end |
#helper_binary_path ⇒ Object
18 19 20 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 18 def helper_binary_path @machine_data_dir.join("avf-runner") end |
#helper_entitlements_path ⇒ Object
14 15 16 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 14 def helper_entitlements_path Pathname.new(File.("driver/virtualization.entitlements", __dir__)) end |
#helper_log_path ⇒ Object
42 43 44 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 42 def helper_log_path @machine_data_dir.join("avf-helper.log") end |
#helper_source_path ⇒ Object
10 11 12 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 10 def helper_source_path Pathname.new(File.("driver/avf_runner.swift", __dir__)) end |
#runtime_disk_path ⇒ Object
22 23 24 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 22 def runtime_disk_path @machine_data_dir.join("disk.img") end |
#start_request_path ⇒ Object
26 27 28 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 26 def start_request_path @machine_data_dir.join("avf-start-request.json") end |
#started_path ⇒ Object
30 31 32 |
# File 'lib/vagrant_provider_avf/driver_paths.rb', line 30 def started_path @machine_data_dir.join("avf-started.json") end |