lib/lacquer/varnish_interface.rb in lacquer-0.1.0 vs lib/lacquer/varnish_interface.rb in lacquer-0.2.0
- old
+ new
@@ -1,6 +1,7 @@
module Lacquer
class VarnishInterface
+ # Sends commands over telnet to varnish servers listed in the config.
def self.send_command(command)
Lacquer.configuration.varnish_servers.each do |server|
begin
connection = Net::Telnet.new(
'Host' => server[:host],