Skip to content

Commit 4be688c

Browse files
committedApr 30, 2016
Docs: config descriptions, Rake task
1 parent 784cea5 commit 4be688c

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed
 

‎.yardopts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-e "./lib/yard-settings/yard-settings.rb"
12
--title "Hutch API docs"
23
-
34
README.md

‎Rakefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ RSpec::Core::RakeTask.new(:spec) do |t|
1111
t.rspec_opts = %w(--color --format doc)
1212
end
1313

14-
task :default => :spec
14+
task default: :spec
15+
16+
#
17+
# Re-generate API docs
18+
#
19+
require 'yard'
20+
require 'yard/rake/yardoc_task'
21+
YARD::Rake::YardocTask.new

‎lib/hutch/config.rb

+11-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def self.boolean_setting(name, _default_value)
4040
# RabbitMQ hostname
4141
string_setting :mq_host, '127.0.0.1'
4242

43-
# RabbitMQ Exchange
43+
# RabbitMQ Exchange to use for publishing
4444
string_setting :mq_exchange, 'hutch'
4545

4646
# RabbitMQ vhost to use
@@ -63,18 +63,28 @@ def self.boolean_setting(name, _default_value)
6363

6464
# [RabbitMQ heartbeat timeout](http://rabbitmq.com/heartbeats.html)
6565
number_setting :heartbeat, 30
66+
# The <tt>basic.qos</tt> prefetch value to use. Default: `0`, no limit. See Bunny and RabbitMQ documentation.
6667
number_setting :channel_prefetch, 0
68+
# Bunny's socket open timeout
6769
number_setting :connection_timeout, 11
70+
# Bunny's socket read timeout
6871
number_setting :read_timeout, 11
72+
# Bunny's socket write timeout
6973
number_setting :write_timeout, 11
74+
# FIXME: DOCUMENT THIS
7075
number_setting :graceful_exit_timeout, 11
76+
#
7177
number_setting :consumer_pool_size, 1
7278

7379
boolean_setting :mq_tls, false
80+
# Should SSL certificate be verified?
7481
boolean_setting :mq_verify_peer, true
7582
boolean_setting :mq_api_ssl, false
7683
boolean_setting :autoload_rails, true
84+
# Should the Hutch runner process daemonise?
7785
boolean_setting :daemonise, false
86+
# Enables publisher confirms. Leaves it up to the app how they are tracked
87+
# (e.g. using Hutch::Broker#confirm_select callback or Hutch::Broker#wait_for_confirms)
7888
boolean_setting :publisher_confirms, false
7989
boolean_setting :force_publisher_confirms, false
8090
boolean_setting :enable_http_api_use, true

0 commit comments

Comments
 (0)
Please sign in to comment.