Sha256: 58f72d568115c3c5f6fd04a0f300e7c998faacf7fdb65a86217f966b1e143760

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true
require 'aws-sdk'

module Hako
  class Scheduler
    class ValidationError < Error
    end

    def initialize(app_id, options, volumes:, scripts:, dry_run:, force:)
      @app_id = app_id
      @volumes = volumes
      @scripts = scripts
      @dry_run = dry_run
      @force = force
      configure(options)
    end

    def configure(_options)
    end

    def deploy(_containers, _options)
      raise NotImplementedError
    end

    def status
      raise NotImplementedError
    end

    def remove
      raise NotImplementedError
    end

    private

    def validation_error!(message)
      raise ValidationError.new(message)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hako-0.13.3 lib/hako/scheduler.rb
hako-0.13.2 lib/hako/scheduler.rb
hako-0.13.1 lib/hako/scheduler.rb
hako-0.13.0 lib/hako/scheduler.rb