Skip to content

Refactor handlers to have a DSL #2

@thheinen

Description

@thheinen

The current way of declaring default options for request and release in handlers is not very TestKitchen-like. Instead, create a Handler DSL to define this like:

class Script < Base
  handler_type 'script'
  handler_version 1

  request_option :match_hostname, '^(.*)$'
  request_option :match_banner

  release_option :execute_ruby, -> { ... }

  # ...
end

PoC already exists internally.

Metadata

Metadata

Assignees

Labels

choreRefactoring, removing technical debt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions