Sha256: fcc891e6cc530226f0efeb4e41d2889c1c182c333b6874d860d8ef669cf333db

Contents?: true

Size: 778 Bytes

Versions: 12

Compression:

Stored size: 778 Bytes

Contents

require 'logger'

module EcsDeployer
  class Client
    # @param [String] cluster
    # @param [Logger] logger
    # @param [Hash] aws_options
    # @return [EcsDeployer::Client]
    def initialize(cluster, logger = nil, aws_options = {})
      @cluster = cluster
      @logger = logger.nil? ? Logger.new(nil) : logger
      @aws_options = aws_options
    end

    # @return [EcsDeployer::Task::Client]
    def task
      EcsDeployer::Task::Client.new(@aws_options)
    end

    # @return [EcsDeployer::ScheduledTask::Client]
    def scheduled_task
      EcsDeployer::ScheduledTask::Client.new(@cluster, @aws_options)
    end

    # @return [EcsDeployer::Service::Client]
    def service
      EcsDeployer::Service::Client.new(@cluster, @logger, @aws_options)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecs_deployer-2.2.2 lib/ecs_deployer/client.rb
ecs_deployer-2.2.1 lib/ecs_deployer/client.rb
ecs_deployer-2.2.0 lib/ecs_deployer/client.rb
ecs_deployer-2.1.13 lib/ecs_deployer/client.rb
ecs_deployer-2.1.12 lib/ecs_deployer/client.rb
ecs_deployer-2.1.11 lib/ecs_deployer/client.rb
ecs_deployer-2.1.10 lib/ecs_deployer/client.rb
ecs_deployer-2.1.9 lib/ecs_deployer/client.rb
ecs_deployer-2.1.8 lib/ecs_deployer/client.rb
ecs_deployer-2.1.7 lib/ecs_deployer/client.rb
ecs_deployer-2.1.6 lib/ecs_deployer/client.rb
ecs_deployer-2.1.5 lib/ecs_deployer/client.rb