Module: AbideDevUtils::Sce::BenchmarkLoader

Defined in:
lib/abide_dev_utils/sce/benchmark_loader.rb

Overview

Namespace for classes and methods for loading benchmarks

Defined Under Namespace

Classes: PupMod

Class Method Summary collapse

Class Method Details

.benchmarks_from_puppet_module(module_dir = Dir.pwd, **opts) ⇒ Array<AbideDevUtils::Sce::Benchmark>

Load benchmarks from a Puppet module

Parameters:

  • module_dir (String) (defaults to: Dir.pwd)

    the directory of the Puppet module

  • opts (Hash)

    options for loading the benchmarks

Options Hash (**opts):

  • :ignore_all_errors (Boolean)

    ignore all errors when loading benchmarks

  • :ignore_framework_mismatch (Boolean)

    ignore errors when the framework doesn’t match

Returns:



16
17
18
# File 'lib/abide_dev_utils/sce/benchmark_loader.rb', line 16

def self.benchmarks_from_puppet_module(module_dir = Dir.pwd, **opts)
  PupMod.new(module_dir, **opts).load
end