test/client.rb in rexec-1.2.6 vs test/client.rb in rexec-1.3.0
- old
+ new
@@ -16,9 +16,17 @@
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+module RemoteProxy
+ def self.foo
+ return :bar
+ end
+end
+
+$connection.handler = RemoteProxy
+
$connection.run do |object|
case(object[0])
when :bounce
$stderr.puts("Bouncing #{object[1].inspect}...")
$connection.send_object(object[1])