Sha256: c972aa27f6cd1f8890e5cb0ffb723efd5deb285a48d605b669d6eda55081aad8
Contents?: true
Size: 550 Bytes
Versions: 8
Compression:
Stored size: 550 Bytes
Contents
module Minke class DockerCompose @compose_file = nil def initialize compose_file @compose_file = compose_file end def up execute "docker-compose -f #{@compose_file} up -d" sleep 2 end def stop execute "docker-compose -f #{@compose_file} stop" end def rm execute "echo y | docker-compose -f #{@compose_file} rm -v" end def logs execute "docker-compose -f #{@compose_file} logs" end private def execute command system("#{command}") end end end
Version data entries
8 entries across 8 versions & 1 rubygems