Sha256: 7b8e74409410531cba10719339ab18a908ab42cb68ddb932c350fd40dad1cef4
Contents?: true
Size: 585 Bytes
Versions: 26
Compression:
Stored size: 585 Bytes
Contents
module Minke module Docker class Network def initialize network_name, shell_runner @network_name = network_name @shell_runner = shell_runner end def create @shell_runner.execute("docker network create #{@network_name}") if find_network.to_s == '' end def remove @shell_runner.execute("docker network rm #{@network_name}") unless find_network.to_s == '' end private def find_network @shell_runner.execute_and_return("docker network ls | grep #{@network_name}") end end end end
Version data entries
26 entries across 26 versions & 1 rubygems