mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Merge pull request #3758 from inspec/ja/fix-profile-context-test
tests: Fix profile_context_test NameError
This commit is contained in:
commit
2be3063e22
2 changed files with 7 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
# author: Dominik Richter
|
||||
# author: Christoph Hartmann
|
||||
require 'inspec/log'
|
||||
require 'inspec/plugin/v2'
|
||||
|
||||
module Inspec::DSL
|
||||
def require_controls(id, &block)
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
require 'inspec/base_cli'
|
||||
|
||||
# The InSpec load order has this file being loaded before `inspec/base_cli` can
|
||||
# finish being loaded. So, we must define Inspec::BaseCLI here first to avoid
|
||||
# a NameError below.
|
||||
class Inspec::BaseCLI < Thor; end
|
||||
|
||||
module Inspec::Plugin::V2::PluginType
|
||||
class CliCommand < Inspec::BaseCLI
|
||||
# initalize log options for plugins
|
||||
# initialize log options for plugins
|
||||
def initialize(args, options, config)
|
||||
super(args, options, config)
|
||||
class_options = config.fetch(:class_options, nil)
|
||||
|
|
Loading…
Reference in a new issue