2005-04-18 03:56:29 +00:00
|
|
|
#!/usr/bin/ruby -I. -I../../lib
|
|
|
|
|
|
|
|
require 'DemoClient'
|
|
|
|
|
2005-04-18 04:10:38 +00:00
|
|
|
host = ARGV[0] || '127.0.0.1'
|
|
|
|
port = ARGV[1] || '12345'
|
|
|
|
src_dir = ARGV[2] || "%WINDIR%\\inf"
|
|
|
|
dst_dir = ARGV[3] || "/tmp/mirror_demo"
|
|
|
|
client = DemoClient.new(host, port).client
|
2005-04-18 03:56:29 +00:00
|
|
|
|
|
|
|
begin
|
2005-04-18 04:10:38 +00:00
|
|
|
Dir.mkdir(dst_dir)
|
2005-04-18 03:56:29 +00:00
|
|
|
rescue
|
|
|
|
end
|
|
|
|
|
2005-04-18 04:10:38 +00:00
|
|
|
client.fs.dir.download(dst_dir, src_dir, true)
|