-
-
Save rottenbytes/890862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MCollective | |
module Agent | |
class agentreload<RPC::Agent | |
action 'reload' do | |
validate :name, String | |
reply.fail! "#{request[:name]} not found." unless Agents.agentlist.include?(request[:name]) | |
# we should iterate on @config.libdir here... | |
load(@config.libdir[0]+"/mcollective/agent/"+request[:name]+".rb") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment