Sha256: 6eb859e697992f2009137de8268ee594973a6c28ef185e3ce74db8ddc9baff98

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true
require 'aws-sdk'

module Hako
  class Scheduler
    class ValidationError < Error
    end

    # @param [String] app_id
    # @param [Hash] options
    # @param [Hash] volumes
    # @param [Array<Script>] scripts
    # @param [Boolean] dry_run
    # @param [Boolean] force
    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

    # @param [Hash] _options
    def configure(_options)
    end

    # @param [Hash<String, Container>] _containers
    def deploy(_containers)
      raise NotImplementedError
    end

    def rollback
      raise NotImplementedError
    end

    def status
      raise NotImplementedError
    end

    def remove
      raise NotImplementedError
    end

    def stop
      raise NotImplementedError
    end

    private

    # @param [String] message
    def validation_error!(message)
      raise ValidationError.new(message)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hako-0.21.1 lib/hako/scheduler.rb
hako-0.21.0 lib/hako/scheduler.rb
hako-0.20.3 lib/hako/scheduler.rb
hako-0.20.2 lib/hako/scheduler.rb
hako-0.20.1 lib/hako/scheduler.rb