Created
November 6, 2013 14:36
-
-
Save jpadams/7337035 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Windowsrun<RPC::Agent | |
| #test of windows run | |
| action "run" do | |
| name = request[:name] | |
| month = request[:birthmonth] | |
| day = request[:birthday] | |
| command = "name.bat ${name} ${month} ${day}" | |
| reply[:status] = run(command,:stdout => :out, :stderr => :err, :chomp => true) | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment