module Ragent::CommandHelpers
Public Instance Methods
command(*commands)
click to toggle source
# File lib/ragent/command_helpers.rb, line 4 def command(*commands) @prepared_commands = [] commands.each do |command| prep_command = { main: plugin_name, # name of the plugin sub: command, method: "command_#{command}" } @prepared_commands << prep_command end end
Also aliased as: commands
prepared_commands()
click to toggle source
# File lib/ragent/command_helpers.rb, line 14 def prepared_commands @prepared_commands || [] end