summaryrefslogtreecommitdiff
path: root/scripts/context/ruby/base/kpseremote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/ruby/base/kpseremote.rb')
-rw-r--r--scripts/context/ruby/base/kpseremote.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/context/ruby/base/kpseremote.rb b/scripts/context/ruby/base/kpseremote.rb
index d66e40e6f..9a73b88b0 100644
--- a/scripts/context/ruby/base/kpseremote.rb
+++ b/scripts/context/ruby/base/kpseremote.rb
@@ -8,10 +8,11 @@ end
class KpseRemote
- @@port = ENV['KPSEPORT'] || 7000
+ @@port = ENV['KPSEPORT'] || 7000
+ @@method = ENV['KPSEMETHOD'] || 'drb'
def KpseRemote::available?
- ENV['KPSEMETHOD'] && ENV['KPSEPORT']
+ @@method && @@port
end
def KpseRemote::start_server(port=nil)