class Kitchen::Provisioner::Dokken
@author Sean OMeara <sean@sean.io>
def call(state)
def call(state) create_sandbox instance.transport.connection(state) do |conn| conn.execute(run_command) end rescue Kitchen::Transport::TransportFailed => ex raise ActionFailed, ex.message # ensure # cleanup_sandbox end
def run_command
def run_command cmd = '/opt/chef/embedded/bin/chef-client' cmd << ' -z' cmd << ' -c /opt/kitchen/client.rb' cmd << ' -j /opt/kitchen/dna.json' cmd << ' -l warn' cmd << ' -F doc' end
def runner_container_name
def runner_container_name instance.name.to_s end