-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dummy export action, which just shows how to export UTM VM manually
- Loading branch information
1 parent
618f410
commit 44754e6
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
module VagrantPlugins | ||
module Utm | ||
module Action | ||
# This action destroys the running machine. | ||
class Export | ||
def initialize(app, _env) | ||
@app = app | ||
end | ||
|
||
def call(env) | ||
# UTM 'Share' feature in UI will Export the virtual machine and all its data. | ||
# Till 'Share' is exposed via API, show a message to manually export. | ||
env[:ui].info I18n.t("vagrant_utm.actions.vm.export.manual_exporting", | ||
name: env[:machine].provider_config.name) | ||
@app.call(env) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters