inspec-containerd-docs 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inspec-containerd-docs/plugin.rb +13 -11
- data/lib/inspec-containerd-docs/version.rb +1 -1
- data/lib/inspec-containerd-docs.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: add811be3672c82d8abba1e6923df59f5922053f20c71c53e7c7f97047180ff3
|
4
|
+
data.tar.gz: 1b75e8b4841d6cea2ca6b21c40a22ba50c7b2e72570ba4502ebe6bdd8c5528d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e49a7be7e5316ebbbe5ffbefa1e52c3486d9240d1ed9394fa60da59ce60d2f579435682e63337be92d177e0a43ff39e03a5cd07995efbb3e9ba825c4e95ae6
|
7
|
+
data.tar.gz: 714ff2182a9380d9a7a7f2d95711696df9370b5fcaea72f0772992288c34f4720790024aa0c717c96a7cb535e82ad012c8b64bc850269da5be50bb97f7c2dcc2
|
@@ -1,24 +1,26 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
3
|
# Plugin Definition file
|
4
|
-
# The purpose of this file is to declare to InSpec what plugin_types
|
5
|
-
# are included in this plugin, and provide hooks that will load them as needed.
|
6
|
-
|
7
|
-
# It is important that this file load successfully and *quickly*.
|
8
|
-
# Your plugin's functionality may never be used on this InSpec run; so we keep things
|
9
|
-
# fast and light by only loading heavy things when they are needed.
|
4
|
+
# The purpose of this file is to declare to InSpec what plugin_types
|
10
5
|
|
11
6
|
require "inspec-containerd-docs/version"
|
12
7
|
module InspecPlugins
|
13
8
|
module ContainerdDocs
|
14
|
-
class Plugin < ::Inspec.plugin(2)
|
9
|
+
class Plugin < ::Inspec.plugin(2, :cli_command)
|
15
10
|
# Internal machine name of the plugin. InSpec will use this in errors, etc.
|
16
11
|
plugin_name :'inspec-containerd-docs'
|
12
|
+
|
13
|
+
def initialize(opts)
|
14
|
+
super(opts)
|
15
|
+
end
|
16
|
+
|
17
|
+
def execute
|
18
|
+
puts 'Hello World'
|
17
19
|
|
18
|
-
# Define an Input plugin type.
|
19
|
-
cli_command :'containerd' do
|
20
|
-
|
21
|
-
|
20
|
+
# # Define an Input plugin type.
|
21
|
+
# cli_command :'containerd' do
|
22
|
+
# require 'inspec-containerd-docs/cli'
|
23
|
+
# InspecPlugins::ContainerdDocs::CliCommand
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|