lib/gem_ext/mixlib.rb
def method_missing(method, *args, &block)
    if block_given?
      config_context(method, &block)
    else
      old_method_missing(method, *args)
    end
  end
# Override Mixlib::Config#method_missing so we can do
# things like this:
#
# @example define a nested group without use config_context
#
#  projects do
#    branch_flow %w[release master]
#    project-one do
#      branch_flow %w[integration release master]
#    end
#  end
Override Mixlib::Config#method_missing so we can do
things like this.
Override Mixlib :: Config#method_missing so we can do things like this .
def method_missing(method, *args, &block)
    if block_given?
      config_context(method, &block)
    else
      old_method_missing(method, *args)
    end
  end
def method_missing ( method , * args , & block ) if block_given? config_context ( method , & block ) else old_method_missing ( method , * args ) end end
Override Mixlib::Config#method_missing so we can do
things like this:
Override Mixlib :: Config#method_missing so we can do things like this :
method
args
block
example
define a nested group without use config_context projects do branch_flow %w[release master] project-one do branch_flow %w[integration release master] end end
define a nested group without use config_context projects do branch_flow %w [ release master ] project - one do branch_flow %w [ integration release master ] end end