Module: Clamd
- Defined in:
- lib/clamd.rb,
lib/clamd/client.rb,
lib/clamd/version.rb,
lib/clamd/configuration.rb,
lib/clamd/socket_manager.rb
Defined Under Namespace
Modules: SocketManager Classes: Client, Configuration
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.configuration ⇒ Object
Gets current configuration details of Clamd.
-
.configure {|@configuration| ... } ⇒ Object
Used to configure the Clamd globally.
Class Method Details
.configuration ⇒ Object
Gets current configuration details of Clamd
29 30 31 |
# File 'lib/clamd.rb', line 29 def self.configuration @configuration end |
.configure {|@configuration| ... } ⇒ Object
Used to configure the Clamd globally
Usage:
Clamd.configure do |config|
config.host = 'localhost'
config.port = 9321
config.open_timeout = 5
config.read_timeout = 10
config.chunk_size = 10240
end
18 19 20 21 22 23 24 |
# File 'lib/clamd.rb', line 18 def self.configure @configuration ||= Configuration.new yield(@configuration) if block_given? @configuration end |