lib/configliere/commands.rb
def resolve!
      super()
      commands.each do |cmd, cmd_info|
        cmd_info[:config].resolve!
      end
      if command_name && commands[command_name]
        sub_config = commands[command_name][:config]
        adoptable  = sub_config.send(:definitions).keys
        merge!( Hash[sub_config.select{|k,v| adoptable.include?(k) }] )
      end
      self
    end
# The name of the command.
The name of the command.
The name of the command .
def resolve!
      super()
      commands.each do |cmd, cmd_info|
        cmd_info[:config].resolve!
      end
      if command_name && commands[command_name]
        sub_config = commands[command_name][:config]
        adoptable  = sub_config.send(:definitions).keys
        merge!( Hash[sub_config.select{|k,v| adoptable.include?(k) }] )
      end
      self
    end
def resolve! super ( ) commands . each do | cmd , cmd_info | cmd_info [ :config ] . resolve! end if command_name && commands [ command_name ] sub_config = commands [ command_name ] [ :config ] adoptable = sub_config . send ( :definitions ) . keys merge! ( Hash [ sub_config . select { | k , v | adoptable . include? ( k ) } ] ) end self end
The name of the command.
The name of the command .