public
Description: my random ruby scripts
Homepage:
Clone URL: git://github.com/kastner/ruby-junk.git
Click here to lend your support to: ruby-junk and make a donation at www.pledgie.com !
ruby-junk / ascii-visualhub.rb
100755 26 lines (18 sloc) 0.304 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env ruby
 
require 'progress'
require 'convert'
 
Convert.start(ARGV[0])
 
Progress.total = Proc.new do
  Convert.frames
end
 
Progress.current = Proc.new do
  Convert.current_frame
end
 
puts
print "starting"
 
while(!Convert.done?)
  Progress.output
  sleep(1)
end
 
puts "Done..."
 
Convert.cleanup