uniak/puppet-networkdevice

View on GitHub
lib/puppet/util/network_device/cisco_ios/model/snmp_host/base.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method register has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.register(base)
    base.base_cmd = "snmp-server host <%= name %>"
    snmp_scope = /^(snmp-server host (\S+)(.*))/
    base.register_scoped :ensure, snmp_scope do
      match do |txt|
Severity: Minor
Found in lib/puppet/util/network_device/cisco_ios/model/snmp_host/base.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status