virtualman 1.1.6 → 1.1.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.
- data/lib/virtualman/conf.rb +0 -7
- data/lib/virtualman/vm.rb +2 -1
- metadata +3 -2
data/lib/virtualman/conf.rb
CHANGED
@@ -29,14 +29,7 @@ def record_conf(vm_cloned, *param)
|
|
29
29
|
|
30
30
|
if param[0] == "delete"
|
31
31
|
verb = "deleted"
|
32
|
-
p conf["cloned_vms"]
|
33
|
-
p conf["cloned_vms"].class
|
34
|
-
p conf["cloned_vms"].reject{|vm| vm == {"name" => vm_cloned.name} }
|
35
|
-
|
36
32
|
conf["cloned_vms"].reject!{|vm| vm == {"name" => vm_cloned.name} }
|
37
|
-
|
38
|
-
p conf["cloned_vms"]
|
39
|
-
|
40
33
|
else
|
41
34
|
verb = "saved"
|
42
35
|
|
data/lib/virtualman/vm.rb
CHANGED
@@ -32,12 +32,13 @@ class Vm
|
|
32
32
|
def stop!
|
33
33
|
$stdout.sync = true
|
34
34
|
if self.running?
|
35
|
-
`ssh root@#{self.
|
35
|
+
`ssh root@#{self.ip} "shutdown -h now"`
|
36
36
|
puts "Waiting for complete shutdown of #{self.name}"
|
37
37
|
while self.running?
|
38
38
|
print "."
|
39
39
|
sleep (1)
|
40
40
|
end
|
41
|
+
sleep (5)
|
41
42
|
end
|
42
43
|
|
43
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtualman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: It is for writing scripts for UNIX-like systems to handle your VirtualBox
|
15
15
|
appliance.
|
@@ -51,3 +51,4 @@ signing_key:
|
|
51
51
|
specification_version: 3
|
52
52
|
summary: A simple way to manage your Virtual Machines under VirtualBox.
|
53
53
|
test_files: []
|
54
|
+
has_rdoc:
|