Sha256: 0b26be8fef2924d2768e1d35c60411bc146176a68f870d156dd2c4bab34bd95d
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
module Lacquer class VarnishInterface def self.send_command(command) Lacquer.configuration.varnish_servers.each do |server| begin connection = Net::Telnet.new( 'Host' => server[:host], 'Port' => server[:port], 'Timeout' => server[:timeout] || 5) connection.puts(command) rescue Exception => e raise VarnishError.new("Error while trying to connect to #{server[:host]}:#{server[:port]} #{e}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lacquer-0.1.0 | lib/lacquer/varnish_interface.rb |