Sha256: c377e206490c208b8ec932fa3e91aef18cd5f0364e90be486a0b94356483367f

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

def sut_module_path(module_regex)
  modules = JSON.parse(PuppetLitmus::PuppetHelpers.run_shell('puppet module list --render-as json').stdout)
  test_module_info = modules['modules_by_path'].values.flatten.find { |mod_info| mod_info =~ module_regex }
  test_module_info.match(/\(([^)]*)\)/)[1]
end

def sut_tmp_path
  # TODO: Linux only
  '/tmp/'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-strings-2.4.0 spec/spec_helper_acceptance_local.rb