Class: Kitchen::Provisioner::Pulumi

Inherits:
Base
  • Object
show all
Includes:
Kitchen::Pulumi::Configurable
Defined in:
lib/kitchen/provisioner/pulumi.rb

Overview

Provisioner class whose call method is invoked when users run kitchen converge

Author:

  • Jacob Learned

Instance Method Summary collapse

Methods included from Kitchen::Pulumi::Configurable

#finalize_config!

Instance Method Details

#call(state) ⇒ Object

Runs stack updates via the instance driver which shells out to pulumi up

Parameters:

  • state (::Hash)

    the current kitchen state

Returns:

  • void

Raises:

  • (Kitchen::ActionFailed)

    if an error occurs during update


27
28
29
30
31
# File 'lib/kitchen/provisioner/pulumi.rb', line 27

def call(state)
  instance.driver.update(state)
rescue ::Kitchen::Pulumi::Error => e
  raise(::Kitchen::ActionFailed, e.message)
end