Sha256: b1384f393f1fcdecb13f4af3dde2eabaeae34984c347bd4a995104f4b3154589
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
def sut_module_path(module_regex) modules = JSON.parse(PuppetLitmus::Serverspec.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-strings-2.3.1 | spec/spec_helper_acceptance_local.rb |
puppet-strings-2.3.0 | spec/spec_helper_acceptance_local.rb |