Class: InspecPlugins::Parallelism::CLI

Inherits:
Object
  • Object
show all
Includes:
Inspec::Dist
Defined in:
lib/plugins/inspec-parallel/lib/inspec-parallel/cli.rb

Constant Summary

Constants included from Inspec::Dist

Inspec::Dist::AUTOMATE_PRODUCT_NAME, Inspec::Dist::COMPLIANCE_PRODUCT_NAME, Inspec::Dist::EXEC_NAME, Inspec::Dist::PRODUCT_NAME, Inspec::Dist::SERVER_PRODUCT_NAME

Instance Method Summary collapse

Instance Method Details

#exec(default_profile = nil) ⇒ Object



28
29
30
31
32
33
34
35
36
37
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/cli.rb', line 28

def exec(default_profile = nil)
  Inspec.with_feature("inspec-cli-parallel-exec") {
    parallel_cmd = InspecPlugins::Parallelism::Command.new(options, default_profile)
    if options[:dry_run]
      parallel_cmd.dry_run
    else
      parallel_cmd.run
    end
  }
end