INNER CODE UNIT · Ruby

DockerComposeSession

EugenMayer/docker-sync · lib/docker-sync/docker_compose_session.rb:5

  class DockerComposeSession
    def initialize(dir: nil, files: nil)
      @dir = dir
      @files = files || [] # Array[String]
      @last_command = nil
    end

    def up(build: false)
      args = []
      args << '--build' if build

      run!('up', *args)
    end

    def stop
      run!('stop')
    end

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…