Method: Codebot::Options::Network#create

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

#create(name) ⇒ Object

Creates a new network with the specified name.

Parameters:

  • name (String)

    the name of the new network



57
58
59
60
61
# File 'lib/codebot/options/network.rb', line 57

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