Method: Codebot::NetworkManager#check_channels!

Defined in:
lib/codebot/network_manager.rb

#check_channels!(integration) ⇒ Object

Checks that all channels associated with an integration belong to a valid network.

Parameters:

  • integration (Integration)

    the integration to check



97
98
99
100
101
# File 'lib/codebot/network_manager.rb', line 97

def check_channels!(integration)
  integration.channels.map(&:network).map(&:name).each do |network|
    find_network!(network)
  end
end