inspec-containerd-docs 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: ca4f04d932821c91846780326deec3404e96cff225df804599487de11c6c6064
|
4
|
+
data.tar.gz: 506eb8c6cb1da78e04d51a04270e1dd0a74fb45e10252eda7ac878f26d357004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0585f86d88c8b1105196acb8a8b528f9f74d4b88f5742cf5f2b488d6061c6832e191b1cbfdc714b00f4b0fef30fd3f9297ad1e8cb46462a156b4fff0bd90d9c
|
7
|
+
data.tar.gz: a178bce3c5f838782755c9f228c9c4f02f7b5e69e36d7d5e1ae51e2ca4c502db4b205de27c8c531b09c84f0b6efffe426d0a6df1b41746772da581362322a3e4
|
@@ -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
|