Class: Dockerspec::Engine::Infrataster

Inherits:
Base
  • Object
show all
Includes:
Infrataster::Helpers::ResourceHelper
Defined in:
lib/dockerspec/engine/infrataster.rb

Overview

The Infrataster testing engine implementation.

Instance Method Summary collapse

Methods inherited from Base

#before_running, #restore, #when_running

Constructor Details

#initialize(runner) ⇒ Dockerspec::Engine::Specinfra

Constructs a testing engine to use Infrataster.

Parameters:



42
43
44
45
# File 'lib/dockerspec/engine/infrataster.rb', line 42

def initialize(runner)
  super
  @definitions = {}
end

Instance Method Details

#when_container_readyObject

Sets up Infrataster.

Returns:

  • void

Raises:

  • (Dockerspec::RunnerError)

    When the #container method is no implemented in the subclass or cannot select the container to test.



57
58
59
# File 'lib/dockerspec/engine/infrataster.rb', line 57

def when_container_ready
  define_server
end