testbot 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/README.markdown +1 -1
- data/lib/runner.rb +7 -3
- data/lib/testbot.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -68,7 +68,7 @@ Using testbot with Rails 3:
|
|
68
68
|
|
69
69
|
Using testbot with Rails 2:
|
70
70
|
|
71
|
-
ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.2.
|
71
|
+
ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.2.9'
|
72
72
|
|
73
73
|
The rails 2 config generator isn't done yet so you can look at the following examples instead:
|
74
74
|
[lib/tasks/testbot.rake](https://gist.github.com/715836) and
|
data/lib/runner.rb
CHANGED
@@ -189,10 +189,14 @@ class Runner
|
|
189
189
|
|
190
190
|
successful_install = system "gem install testbot -v #{version}"
|
191
191
|
|
192
|
-
|
193
|
-
|
192
|
+
if successful_install
|
193
|
+
File.open("/tmp/update_testbot.sh", "w") { |file| file.write("#!/bin/sh\nsleep 5\ntestbot #{ARGV.join(' ')}") }
|
194
|
+
system "chmod +x /tmp/update_testbot.sh"
|
195
|
+
system "nohup /tmp/update_testbot.sh &"
|
196
|
+
exit 0
|
197
|
+
end
|
194
198
|
end
|
195
|
-
|
199
|
+
|
196
200
|
def ping_params
|
197
201
|
{ :hostname => (@hostname ||= `hostname`.chomp), :max_instances => @config.max_instances,
|
198
202
|
:idle_instances => (@config.max_instances - @instances.size), :username => ENV['USER'] }.merge(base_params)
|
data/lib/testbot.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|