Sha256: b04b2dbfcab3e6062fc36d3c20f2d439cd15119e32db6d2e921e6023abfb70c4

Contents?: true

Size: 1.19 KB

Versions: 36

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true

require 'hako/scripts'

module Hako
  class Script
    # @param [Application] app
    # @param [Hash] options
    # @param [Boolean] dry_run
    def initialize(app, options, dry_run:)
      @app = app
      @dry_run = dry_run
      configure(options)
    end

    # @param [Hash<String, Container>] _containers
    def deploy_starting(_containers); end

    # @param [Hash<String, Container>] _containers
    # @param [Fixnum] _front_port
    def deploy_started(_containers, _front_port); end

    # @param [Hash<String, Container>] _containers
    def deploy_finished(_containers); end

    def rollback_starting; end

    # @param [String] _current_image_tag
    # @param [String] _target_image_tag
    def rollback_started(_current_image_tag, _target_image_tag); end

    def rollback_finished; end

    # @param [Hash<String, Container>] _containers
    def oneshot_starting(_containers); end

    # @param [Scheduler] _scheduler
    def oneshot_started(_scheduler); end

    # @param [Hash<String, Container>] _containers
    def oneshot_finished(_containers); end

    def after_remove; end

    private

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hako-2.7.0 lib/hako/script.rb
hako-2.6.2 lib/hako/script.rb
hako-2.6.1 lib/hako/script.rb
hako-2.6.0 lib/hako/script.rb
hako-2.5.1 lib/hako/script.rb
hako-2.5.0 lib/hako/script.rb
hako-2.4.0 lib/hako/script.rb
hako-2.3.1 lib/hako/script.rb
hako-2.3.0 lib/hako/script.rb
hako-2.2.0 lib/hako/script.rb
hako-2.1.0 lib/hako/script.rb
hako-2.0.4 lib/hako/script.rb
hako-2.0.3 lib/hako/script.rb
hako-2.0.2 lib/hako/script.rb
hako-2.0.1 lib/hako/script.rb
hako-2.0.0 lib/hako/script.rb
hako-1.9.0 lib/hako/script.rb
hako-1.8.4 lib/hako/script.rb
hako-1.8.3 lib/hako/script.rb
hako-1.8.2 lib/hako/script.rb