vagrant-foodtaster-server 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,28 +26,33 @@ class VagrantFoodtasterServer
|
|
26
26
|
$stderr = stderr
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
def make_initial_snapshot_on_vm(vm_name)
|
30
|
+
vm = get_vm(vm_name)
|
31
|
+
sahara_for(vm).on
|
32
|
+
end
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
def start_vm(vm_name)
|
35
|
+
vm = get_vm(vm_name)
|
36
|
+
chef_run_list = get_chef_solo_run_list(vm)
|
37
|
+
provision_types = [:shell, :puppet]
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
unless chef_run_list.empty?
|
40
|
+
provision_types << :chef_solo
|
41
|
+
end
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
vm.action(:up,
|
44
|
+
provision_types: provision_types,
|
45
|
+
provision_enabled: true)
|
46
|
+
end
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
def vm_running?(vm_name)
|
49
|
+
vm = get_vm(vm_name)
|
50
|
+
vm.state.id.to_s == 'running'
|
51
|
+
end
|
52
|
+
|
53
|
+
def initial_snapshot_made_on_vm?(vm_name)
|
54
|
+
vm = get_vm(vm_name)
|
55
|
+
sahara_for(vm).is_snapshot_mode_on?
|
51
56
|
end
|
52
57
|
|
53
58
|
def rollback_vm(vm_name)
|