class Inspec::Plugin::V2::PluginType::Input
Public Instance Methods
default_priority()
click to toggle source
When an input is obtained from the plugin, this number determines what precedence to assign to the input. @return Integer range 0-100. Higher priority means higher precedence
# File lib/inspec/plugin/v2/plugin_types/input.rb, line 13 def default_priority 60 end
fetch(_profile_name, _input_name)
click to toggle source
Indicates an attempt is being made to read the value for an input. Return nil if the input is not supplied by the plugin, otherwise return the value. @return Object
or nil
# File lib/inspec/plugin/v2/plugin_types/input.rb, line 21 def fetch(_profile_name, _input_name) raise NotImplementedError, "Plugin #{plugin_name} must implement the #fetch method" end
list_inputs(_profile)
click to toggle source
Given a profile name, list all input names for which the plugin would offer a response. @param String profile_name Name of the profile @return Array List
of input names for which the plugin would offer a response.
# File lib/inspec/plugin/v2/plugin_types/input.rb, line 30 def list_inputs(_profile) raise NotImplementedError, "Plugin #{plugin_name} must implement the #list_inputs method" end