test/client.rb in rexec-1.4.1 vs test/client.rb in rexec-1.5.0
- old
+ new
@@ -17,20 +17,20 @@
# 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.
$connection.run do |object|
- case(object[0])
- when :bounce
- $stderr.puts("Bouncing #{object[1].inspect}...")
- $connection.send_object(object[1])
- when :exception
- $stderr.puts("Raising exception...")
- raise Exception.new("I love exceptions!")
- when :stop
- $stderr.puts("Stopping connection manually...")
- $connection.stop
- when :stderr
- $stderr.puts object[1]
- $stderr.flush
- end
+ case(object[0])
+ when :bounce
+ $stderr.puts("Bouncing #{object[1].inspect}...")
+ $connection.send_object(object[1])
+ when :exception
+ $stderr.puts("Raising exception...")
+ raise Exception.new("I love exceptions!")
+ when :stop
+ $stderr.puts("Stopping connection manually...")
+ $connection.stop
+ when :stderr
+ $stderr.puts object[1]
+ $stderr.flush
+ end
end