lib/encbsconfig.rb in encbs-0.2.1.alpha vs lib/encbsconfig.rb in encbs-0.2.1.beta1

- old
+ new

@@ -1,8 +1,8 @@ class EncbsConfig attr_reader :paths, :bucket, :colorize, :compression, :hostname, :increment, - :key, :secret, :size, :token, :timeout, :verbose + :key, :purge, :secret, :size, :token, :timeout, :verbose def initialize @paths = "" end @@ -59,7 +59,11 @@ @verbose = true end def set_timeout attr @timeout = attr + end + + def purge! + @purge = true unless @increment end end