[Archipelago-submits] [180] trunk/archipelago/lib/archipelago: intermediary commit

nobody at rubyforge.org nobody at rubyforge.org
Mon Jan 22 04:07:42 EST 2007


Revision: 180
Author:   zond
Date:     2007-01-22 04:07:42 -0500 (Mon, 22 Jan 2007)

Log Message:
-----------
intermediary commit

Added Paths:
-----------
    trunk/archipelago/lib/archipelago/tanker.rb

Removed Paths:
-------------
    trunk/archipelago/lib/archipelago/cove.rb

Deleted: trunk/archipelago/lib/archipelago/cove.rb
===================================================================
--- trunk/archipelago/lib/archipelago/cove.rb	2007-01-20 17:40:08 UTC (rev 179)
+++ trunk/archipelago/lib/archipelago/cove.rb	2007-01-22 09:07:42 UTC (rev 180)
@@ -1,68 +0,0 @@
-# Archipelago - a distributed computing toolkit for ruby
-# Copyright (C) 2006  Martin Kihlgren <zond at troja dot ath dot cx>
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-
-require 'archipelago/disco'
-require 'archipelago/hashish'
-require 'archipelago/exxon'
-require 'archipelago/raider'
-
-module Archipelago
-
-  module Cove
-
-    class Tanker
-
-      #
-      # The Tanker can be published.
-      #
-      include Archipelago::Disco::Publishable
-
-      def initialize(options = {})
-        #
-        # The provider of happy magic persistent hashes of different kinds.
-        #
-        @persistence_provider = options[:persistence_provider] || Archipelago::Hashish::BerkeleyHashishProvider.new(Pathname.new(File.expand_path(__FILE__)).parent.join("cove_tanker.db"))
-
-        @db = @persistence_provider.get_hashish("db")
-
-        @valdez = options[:valdez] || Archipelago::Exxon::HAZELWOOD
-
-        #
-        # Use the given options to initialize the publishable
-        # instance variables.
-        #
-        initialize_publishable(options)
-
-      end
-
-      def store_part(key, split_part)
-        @db[key] = Marshal.dump(split_part)
-      end
-
-      def get_part(key)
-        if @db.include?(key)
-          return Marshal.load(@db[key])
-        else
-          return nil
-        end
-      end
-
-    end
-
-  end
-
-end

Copied: trunk/archipelago/lib/archipelago/tanker.rb (from rev 179, trunk/archipelago/lib/archipelago/cove.rb)
===================================================================
--- trunk/archipelago/lib/archipelago/tanker.rb	                        (rev 0)
+++ trunk/archipelago/lib/archipelago/tanker.rb	2007-01-22 09:07:42 UTC (rev 180)
@@ -0,0 +1,68 @@
+# Archipelago - a distributed computing toolkit for ruby
+# Copyright (C) 2006  Martin Kihlgren <zond at troja dot ath dot cx>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+
+require 'archipelago/disco'
+require 'archipelago/hashish'
+require 'archipelago/exxon'
+require 'archipelago/raider'
+
+module Archipelago
+
+  module Cove
+
+    class Tanker
+
+      #
+      # The Tanker can be published.
+      #
+      include Archipelago::Disco::Publishable
+
+      def initialize(options = {})
+        #
+        # The provider of happy magic persistent hashes of different kinds.
+        #
+        @persistence_provider = options[:persistence_provider] || Archipelago::Hashish::BerkeleyHashishProvider.new(Pathname.new(File.expand_path(__FILE__)).parent.join("cove_tanker.db"))
+
+        @db = @persistence_provider.get_hashish("db")
+
+        @valdez = options[:valdez] || Archipelago::Exxon::HAZELWOOD
+
+        #
+        # Use the given options to initialize the publishable
+        # instance variables.
+        #
+        initialize_publishable(options)
+
+      end
+
+      def store_part(key, split_part)
+        @db[key] = Marshal.dump(split_part)
+      end
+
+      def get_part(key)
+        if @db.include?(key)
+          return Marshal.load(@db[key])
+        else
+          return nil
+        end
+      end
+
+    end
+
+  end
+
+end




More information about the Archipelago-submits mailing list