Method: Codebot::Options::Integration#create

Defined in:
lib/codebot/options/integration.rb

#create(name) ⇒ Object

Creates a new integration with the specified name.

Parameters:

  • name (String)

    the name of the new integration



28
29
30
31
32
33
# File 'lib/codebot/options/integration.rb', line 28

def create(name)
  Options.with_core(parent_options, true) do |core|
    map_channels!(options, :channels)
    IntegrationManager.new(core.config).create(options.merge(name: name))
  end
end