Make missing variable a local method.
authorMatt Amos <zerebubuth@gmail.com>
Wed, 7 Sep 2016 11:00:43 +0000 (12:00 +0100)
committerMatt Amos <zerebubuth@gmail.com>
Wed, 7 Sep 2016 11:00:43 +0000 (12:00 +0100)
cookbooks/planet/files/default/replication-bin/replicate-changesets

index ef6a27eb9b774b48bfb812c400c12a5304aa215f..b15351388f7f9ce0a4e1ef1be79111fd33b15e7a 100644 (file)
@@ -199,8 +199,11 @@ class Replicator
     doc.to_s
   end
 
-  def data_stem
+  def sequence
     sequence = (@state.key?("sequence") ? @state["sequence"] + 1 : 0)
+  end
+
+  def data_stem
     @config["data_dir"] + format("/%03d/%03d/%03d", sequence / 1000000, (sequence / 1000) % 1000, (sequence % 1000))
   end