Created
May 22, 2010 19:32
-
-
Save nolman/410298 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
#vlad code, why on earth would you do this...??? | |
def export receiver, *methods | |
methods.each do |method| | |
eval "def #{method} *args, █ #{receiver}.#{method}(*args, &block);end" | |
end | |
end | |
export "Thread.current[:task]", :get, :put, :rsync, :run, :sudo, :target_host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment