class Nib::Integrate::NetworkCreator
NetworkCreator
creates the nib-integrate-network
Public Class Methods
call()
click to toggle source
# File lib/nib/integrate/network_creator.rb, line 6 def call create_network unless network_exists? end
Private Class Methods
create_network()
click to toggle source
# File lib/nib/integrate/network_creator.rb, line 12 def create_network system 'docker network create nib-integrate-network' end
network_exists?()
click to toggle source
# File lib/nib/integrate/network_creator.rb, line 16 def network_exists? `docker network ls` =~ /nib-integrate-network/ end