Skip to content

Commit

Permalink
Merge pull request hallidave#19 from rasputnik/master
Browse files Browse the repository at this point in the history
Allow load_modules to be called after initialization
  • Loading branch information
hallidave committed Mar 12, 2013
2 parents 03ff02d + 71fb116 commit 92f72a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/snmp/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ def next_request_id=(request_id)
@@request_id.force_next(request_id)
end

def load_modules(module_list, mib_dir)
module_list.each { |m| @mib.load_module(m, mib_dir) }
end

private

def warn(message)
Expand All @@ -481,10 +485,6 @@ def warn(message)
Kernel::warn "#{location}: warning: #{message}"
end

def load_modules(module_list, mib_dir)
module_list.each { |m| @mib.load_module(m, mib_dir) }
end

def try_request(request, community=@community, host=@host, port=@port)
(@retries + 1).times do |n|
send_request(request, community, host, port)
Expand Down

0 comments on commit 92f72a7

Please sign in to comment.