Module: VagrantPlugins::HyperV::Action
- Defined in:
- lib/vagrant-windows-hyperv/monkey_patch/action.rb,
lib/vagrant-windows-hyperv/monkey_patch/action/import.rb,
lib/vagrant-windows-hyperv/monkey_patch/action/customize.rb
Defined Under Namespace
Classes: Customize, Import
Class Method Summary
collapse
Class Method Details
.action_reload ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/vagrant-windows-hyperv/monkey_patch/action.rb', line 25
def self.action_reload
Vagrant::Action::Builder.new.tap do |b|
b.use ConfigValidate
b.use Call, IsState, :not_created do |env, b2|
if env[:result]
b2.use Message, I18n.t("vagrant_hyperv.message_not_created")
next
end
b2.use action_halt
b2.use Customize, "pre-boot"
b2.use action_start
end
end
end
|
.action_up ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/vagrant-windows-hyperv/monkey_patch/action.rb', line 10
def self.action_up
Vagrant::Action::Builder.new.tap do |b|
b.use CheckEnabled
b.use HandleBox
b.use ConfigValidate
b.use Call, IsState, :not_created do |env1, b1|
if env1[:result]
b1.use Import
end
b1.use Customize, "pre-boot"
b1.use action_start
end
end
end
|