Chef::Expander

Constants

BROADCAST_CONTROL_EXCHANGE_NAME
SHARED_CONTROL_QUEUE_NAME
VERSION
VNODES

VNODES is the number of queues in rabbit that are available for subscribing. The name comes from riak, where the data ring (160bits) is chunked into many vnodes; vnodes outnumber physical nodes, so one node hosts several vnodes. That is the same design we use here.

See the notes on topic queue benchmarking before adjusting this value.

Public Class Methods

config() click to toggle source
# File lib/chef/expander/configuration.rb, line 32
def self.config
  @config ||= Configuration::Base.new
end
init_config(argv) click to toggle source
# File lib/chef/expander/configuration.rb, line 36
def self.init_config(argv)
  config.apply_defaults
  remaining_opts_after_parse = Configuration::CLI.parse_options(argv)
  # Need to be able to override the default config file location on the command line
  config_file_to_use = Configuration::CLI.config.config_file || config.config_file
  config.merge_config(Configuration::Base.from_chef_compat_config(config_file_to_use))
  # But for all other config options, the CLI config should win over config file
  config.merge_config(Configuration::CLI.config)
  config.validate!
  remaining_opts_after_parse
end
version() click to toggle source
# File lib/chef/expander/version.rb, line 28
def self.version
  @rev ||= begin
    begin
      rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
    rescue Errno::ENOENT
      rev = ""
    end
    rev.empty? ? nil : " (#{rev})"
  end
  "#{VERSION}#@rev"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.