torquespec 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,12 @@ module TorqueSpec
45
45
  end
46
46
 
47
47
  def undeploy(url)
48
- _undeploy(url)
48
+ begin
49
+ _undeploy(url)
50
+ rescue Exception=>e
51
+ $stderr.puts `jstack #{self.server_pid}`
52
+ raise e
53
+ end
49
54
  end
50
55
 
51
56
  def wait_for_ready(timeout)
@@ -67,6 +72,7 @@ module TorqueSpec
67
72
  wait = opts[:wait].to_i
68
73
  cmd = start_command
69
74
  process = IO.popen( cmd )
75
+ self.server_pid = process.pid
70
76
  Thread.new(process) { |console| while(console.gets); end }
71
77
  %w{ INT TERM KILL }.each { |signal| trap(signal) { stop } }
72
78
  puts "#{cmd}\npid=#{process.pid}"
@@ -96,6 +102,7 @@ module TorqueSpec
96
102
  end
97
103
 
98
104
  attr_accessor :stopped
105
+ attr_accessor :server_pid
99
106
  end
100
107
 
101
108
  end
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquespec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Crossley
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-10 00:00:00 -04:00
19
+ date: 2011-08-29 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency