Sha256: 680bcea975e9c6b971c7d0898a36515244495b8d2e0e9d39661be8259ddfe7fd

Contents?: true

Size: 500 Bytes

Versions: 13

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Orchestration
  module DockerCompose
    class RabbitMQService
      def initialize(config)
        @config = config
      end

      def definition
        return nil if @config.settings.nil?

        host_port = @config.settings.fetch('port', 5672)
        container_port = Orchestration::Services::RabbitMQ::PORT

        {
          'image' => 'library/rabbitmq',
          'ports' => ["#{host_port}:#{container_port}"]
        }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
orchestration-0.3.3 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.3.2 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.3.1 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.3.0 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.8 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.7 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.6 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.5 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.4 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.3 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.2 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.1 lib/orchestration/docker_compose/rabbitmq_service.rb
orchestration-0.2.0 lib/orchestration/docker_compose/rabbitmq_service.rb