class Shiplane::Deploy::NetworkConfiguration
Public Instance Methods
connect_commands(role)
click to toggle source
# File lib/shiplane/deploy/network_configuration.rb, line 10 def connect_commands(role) @connect_commands ||= connections.map do |connection| [ docker_command(role), "network connect", name, connection, "|| true", ].flatten.compact.join(" ") end end
connections()
click to toggle source
# File lib/shiplane/deploy/network_configuration.rb, line 6 def connections @connections ||= options.fetch(:connections, []) end
create_command(role)
click to toggle source
# File lib/shiplane/deploy/network_configuration.rb, line 23 def create_command(role) @create_command ||= [ docker_command(role), "network create", name, "|| true", ].flatten.compact.join(" ") end
create_commands(role)
click to toggle source
# File lib/shiplane/deploy/network_configuration.rb, line 32 def create_commands(role) [ create_command(role), connect_commands(role), ].flatten end