Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ test file

  • Loading branch information...
commit 545950e318d095e6bd8cdc1faf39f3cc9a9cd8b4 1 parent 752eb0e
@floere authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 test.rb
View
30 test.rb
@@ -0,0 +1,30 @@
+require 'suckerfish'
+
+class Configuration
+
+ def greet name
+ puts "Helloo from #{Process.pid}, #{name}!"
+ end
+
+end
+
+configuration = Configuration.new
+
+suckerfish = Suckerfish.in_master do |name|
+ configuration.greet name
+end
+
+child_id = fork do
+
+ # In child.
+ #
+ suckerfish.call_master_with "Florian"
+
+end
+
+# In master.
+#
+puts "Master PID: #{Process.pid}"
+puts "Child PID: #{child_id}"
+
+Process.wait 0
Please sign in to comment.
Something went wrong with that request. Please try again.