INNER CODE UNIT · Ruby

down

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

    def down
      run!('down')
    end

    private

    def docker_compose_legacy_binary_exists?
      system('which docker-compose > /dev/null 2>&1')
    end


    def run!(*args)
      # file_args and args should be Array of String
      file_args = @files.map { |file| "--file=#{file}" }

      if docker_compose_legacy_binary_exists?
        command = 'docker-compose'
        command_args = file_args + args

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…