Module: Inspec
- Defined in:
- lib/inspec/runner.rb,
lib/inspec/log.rb,
lib/inspec/rule.rb,
lib/inspec/shell.rb,
lib/inspec/backend.rb,
lib/inspec/plugins.rb,
lib/inspec/profile.rb,
lib/inspec/version.rb,
lib/inspec/metadata.rb,
lib/inspec/resource.rb,
lib/inspec/runner_mock.rb,
lib/inspec/runner_rspec.rb,
lib/inspec/targets/core.rb,
lib/inspec/profile_context.rb,
lib/inspec/plugins/resource.rb
Overview
author: Dominik Richter author: Christoph Hartmann
Defined Under Namespace
Modules: Archive, Backend, DSL, DSLHelper, GlobalDSL, Plugins, Resources, Targets Classes: ExpectationTarget, Log, Metadata, NoSummaryFormatter, Profile, ProfileContext, Resource, Rule, Runner, RunnerMock, RunnerRspec, Shell
Constant Summary collapse
- VERSION =
'0.9.11'.freeze
Class Method Summary collapse
-
.resource(version) ⇒ Resource
Retrieve the base class for creating a new resource.
Class Method Details
.resource(version) ⇒ Resource
Retrieve the base class for creating a new resource. Create classes that inherit from this class.
39 40 41 42 43 44 |
# File 'lib/inspec/resource.rb', line 39 def self.resource(version) if version != 1 fail 'Only resource version 1 is supported!' end Inspec::Plugins::Resource end |