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.
@@ -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
- if vms.empty?
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'vixen'
3
- s.version = '0.0.9'
3
+ s.version = '0.0.10'
4
4
  s.date = '2012-11-20'
5
5
 
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vixen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: