Method: Inspec.resource
- Defined in:
- lib/inspec/resource.rb
.resource(version) ⇒ Resource
Retrieve the base class for creating a new resource. Create classes that inherit from this class.
43 44 45 46 47 48 |
# File 'lib/inspec/resource.rb', line 43 def self.resource(version) if version != 1 fail 'Only resource version 1 is supported!' end Inspec::Plugins::Resource end |