Skip to content

Commit

Permalink
remove unused configure script and method
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenrajm7 committed Jul 25, 2024
1 parent ad4ddb5 commit ba39acf
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 48 deletions.
4 changes: 0 additions & 4 deletions lib/vagrant_utm/action/import_vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ def import(env)
config = machine.provider_config
driver = machine.provider.driver
utm_file_url = config.utm_file_url
# name = config.name

env[:ui].info I18n.t("vagrant_utm.messages.importing_utm_file", name: utm_file_url)

# Import the UTM VM file
driver.import(utm_file_url)
# Configure the VM, change the name (required) and settings (if needed).
# Try to configure after the import is confirmed. (put in in action and use confirm Download)
# driver.configure(uuid, config)

# Set the UID of Vagrant machine to the Name of the VM in UTM (same as name in Vagrantfile config)
# UTM maintains UUID as primary key for VMs, but even the name works for all commands
Expand Down
6 changes: 0 additions & 6 deletions lib/vagrant_utm/driver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ def list; end
# @return [uuid] The UUID of the imported machine.
def import(utm_file_url); end

# Configure the VM with the given config.
# @param uuid [String] The UUID of the machine.
# @param config [Config] The configuration of the machine.
# @return [void]
def configure(uuid, config); end

# Sets the name of the virtual machine.
# @param name [String] The new name of the machine.
# @return [void]
Expand Down
1 change: 0 additions & 1 deletion lib/vagrant_utm/driver/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def initialize(uuid = nil) # rubocop:disable Metrics/CyclomaticComplexity,Metric
end

def_delegators :@driver,
:configure,
:import,
:list,
:read_state,
Expand Down
10 changes: 0 additions & 10 deletions lib/vagrant_utm/driver/version_4_5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@ def import(utm_file_url)
# last_uuid
end

# Configure the VM with the given config.
# @param uuid [String] The UUID of the machine.
# @param config [Config] The configuration of the machine.
# @return [void]
def configure(uuid, config)
script_path = @script_path.join("configure_vm.applescript")
cmd = ["osascript", script_path.to_s, uuid, config.name]
execute_shell(*cmd)
end

# Return UUID of the last VM in the list.
# @return [uuid] The UUID of the VM.
def last_uuid
Expand Down
27 changes: 0 additions & 27 deletions lib/vagrant_utm/scripts/configure_vm.applescript

This file was deleted.

0 comments on commit ba39acf

Please sign in to comment.