vixen 0.0.9 → 0.0.10
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/vixen/command_line.rb +4 -4
- data/vixen.gemspec +1 -1
- metadata +1 -1
data/lib/vixen/command_line.rb
CHANGED
@@ -12,9 +12,11 @@ class Vixen::CommandLine
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def execute
|
15
|
+
new_line_after { print "Connecting to local host" }
|
15
16
|
host = Vixen.local_connect
|
16
17
|
|
17
18
|
vms = host.paths_of_running_vms do |job_handle, event_type, more_event_info, client_data|
|
19
|
+
print " <searching> "
|
18
20
|
if event_type == Vixen::Constants::VixEventType[:find_item]
|
19
21
|
path = Vixen::Bridge.get_string_property more_event_info, Vixen::Constants::VixPropertyId[:found_item_location]
|
20
22
|
if path
|
@@ -23,9 +25,7 @@ class Vixen::CommandLine
|
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
26
|
-
|
27
|
-
new_line_after { print "No running virtual machines" }
|
28
|
-
end
|
28
|
+
new_line_after { print "Found #{vms.size} running virtual machines" }
|
29
29
|
end
|
30
30
|
|
31
31
|
def new_line_after
|
@@ -35,7 +35,7 @@ class Vixen::CommandLine
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def print(message, *args)
|
38
|
-
timed_message = "#{elapsed_time} " + message
|
38
|
+
timed_message = "\r#{elapsed_time} " + message
|
39
39
|
$stdout.print timed_message, args
|
40
40
|
$stdout.flush
|
41
41
|
end
|
data/vixen.gemspec
CHANGED