lib/webtranslateit/safe/backup.rb in webtranslateit-safe-0.4.3 vs lib/webtranslateit/safe/backup.rb in webtranslateit-safe-0.4.4

- old
+ new

@@ -1,20 +1,27 @@ module WebTranslateIt + module Safe + class Backup + attr_accessor :id, :kind, :filename, :extension, :command, :compressed, :timestamp, :path + def initialize(opts = {}) opts.each do |k, v| - self.send("#{k}=", v) + send("#{k}=", v) end end def run(config, *mods) mods.each do |mod| mod = mod.to_s mod[0] = mod[0..0].upcase WebTranslateIt::Safe.const_get(mod).new(config, self).process end end + end + end -end \ No newline at end of file + +end