class ConfWorkflow::Conf
Workflow for accessing configuration values from the command line
Public Class Methods
new(args = [], options = {}, config = {})
click to toggle source
Calls superclass method
WorkflowPluginBase::new
# File lib/plugins/conf_workflow.rb, line 11 def initialize(args = [], options = {}, config = {}) super(args, options, config) @actions = ConfWorkflow::ConfActions.new end
Public Instance Methods
key(key)
click to toggle source
# File lib/plugins/conf_workflow.rb, line 22 def key(key) inf(@actions.key(key)) end
select(regex = "")
click to toggle source
# File lib/plugins/conf_workflow.rb, line 17 def select(regex = "") (@actions.select(regex)).each { |k, v| inf("#{k}: #{v}") } end