jenkins-plugin-runtime 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Jenkins::CLI
|
|
6
6
|
# Jenkins instance. This disgusting hack detects if we're in
|
7
7
|
# RSpec mode and just creates the proxy class without descending
|
8
8
|
# from the Java class.
|
9
|
-
if Jenkins.rspec_ewwww_gross_hack?
|
9
|
+
if Jenkins.respond_to?(:rspec_ewwww_gross_hack?)
|
10
10
|
class CommandProxy; end
|
11
11
|
else
|
12
12
|
class CommandProxy < Java.hudson.cli.CLICommand; end
|