]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
remove the versioncmp function in the rdiff handler. This was a nice attempt to try...
authorMicah Anderson <micah@riseup.net>
Tue, 14 Apr 2009 19:56:53 +0000 (15:56 -0400)
committerMicah Anderson <micah@riseup.net>
Tue, 14 Apr 2009 19:56:53 +0000 (15:56 -0400)
puppets, but this functionality has not stabilized yet, 0.24.8 broke versioncmp and there looks like
a new way coming. Its easier to be mean.

templates/rdiff.conf.erb

index a28917ad52d1fa5fa5877a8caff44c1b061768e2..a41e969516972ef6b5a861f3e1a13284eca15085 100644 (file)
@@ -28,25 +28,9 @@ type = local
 <% end -%>
 
 [dest]
-<%- include Puppet::Util::Package
-    class VersionComparer; extend Puppet::Util::Package; end
-    
-    if VersionComparer.versioncmp(Puppet.version,'0.24.6') >= 0
-        %w{type host directory user sshoptions}.each do |v|
-                if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false"
-                -%>
+<%- %w{type host directory user sshoptions}.each do |v|
+    if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
 <%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
-        <%-
-                end
-        end
-        %>
-<%- else -%>
-        <%- %w{type host directory user sshoptions}.each do |v|
-                if @scope.lookupvar(v)
-                -%>
-<%= v + ' = ' + @scope.lookupvar(v) %>
-        <%-
-                end
-        end
-        %>
-<%- end -%>
+<%-
+    end
+end -%>