jason-o-matic-deep_test 1.2.2.14 → 1.2.2.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,13 @@ module DeepTest
28
28
  puts "Syncing..."
29
29
  sync_start = Time.now
30
30
 
31
+ if options.sync_options[:code_distribution_server]
32
+ dist_dest = options.mirror_path("/tmp")
33
+ RSync.sync(Struct.new(:address).new(options.sync_options[:code_distribution_server]), options, dist_dest)
34
+ options.sync_options[:distribution_server_tunnel] = true
35
+ options.sync_options[:distribution_server_source] = dist_dest
36
+ end
37
+
31
38
  threads = @slaves.map do |slave|
32
39
  Thread.new do
33
40
  Thread.current[:receiver] = slave
@@ -21,13 +21,18 @@ module DeepTest
21
21
  # The '/' after source tells rsync to copy the contents
22
22
  # of source to destination, rather than the source directory
23
23
  # itself
24
- "rsync -az --delete #{@sync_options[:rsync_options]} #{source_location}/ #{destination_location(destination)} 2>&1".strip.squeeze(" ")
24
+ cmd = "rsync -az --delete #{@sync_options[:rsync_options]} #{source_location}/ #{destination_location(destination)} 2>&1".strip.squeeze(" ")
25
+ @sync_options[:distribution_server_tunnel] ? tunnelize(cmd) : cmd
26
+ end
27
+
28
+ def tunnelize(rsync_command)
29
+ "ssh #{@sync_options[:ssh_tunnel_options]} #{@sync_options[:username]}@#{@sync_options[:code_distribution_server]} 'cd #{source_location} && #{rsync_command}'"
25
30
  end
26
31
 
27
32
  def source_location
28
33
  loc = ""
29
34
  loc << common_location_options unless @sync_options[:local] || @sync_options[:push_code]
30
- loc << @sync_options[:source]
35
+ loc << (@sync_options[:distribution_server_source] || @sync_options[:source])
31
36
  end
32
37
 
33
38
  def destination_location(destination)
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jason-o-matic-deep_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2.14
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 2
8
+ - 2
9
+ - 15
10
+ version: 1.2.2.15
5
11
  platform: ruby
6
12
  authors:
7
13
  - anonymous z, Dan Manges, David Vollbracht
@@ -9,19 +15,23 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2008-10-11 00:00:00 -07:00
18
+ date: 2008-10-11 00:00:00 -04:00
13
19
  default_executable: deep_test
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: jason-o-matic-drbfire
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 1
31
+ - 3
23
32
  version: 0.1.3
24
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  description: DeepTest runs tests in multiple processes.
26
36
  email: daniel.manges@gmail.com
27
37
  executables:
@@ -138,6 +148,8 @@ files:
138
148
  - bin/deep_test
139
149
  has_rdoc: true
140
150
  homepage: http://deep-test.rubyforge.org
151
+ licenses: []
152
+
141
153
  post_install_message:
142
154
  rdoc_options:
143
155
  - --title
@@ -151,18 +163,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
163
  requirements:
152
164
  - - ">="
153
165
  - !ruby/object:Gem::Version
166
+ segments:
167
+ - 0
154
168
  version: "0"
155
- version:
156
169
  required_rubygems_version: !ruby/object:Gem::Requirement
157
170
  requirements:
158
171
  - - ">="
159
172
  - !ruby/object:Gem::Version
173
+ segments:
174
+ - 0
160
175
  version: "0"
161
- version:
162
176
  requirements: []
163
177
 
164
178
  rubyforge_project: deep-test
165
- rubygems_version: 1.2.0
179
+ rubygems_version: 1.3.6
166
180
  signing_key:
167
181
  specification_version: 2
168
182
  summary: DeepTest runs tests in multiple processes.