Sha256: 2776f518579558f89b42d0ad4709511ffa45c1527aae9742f0e7f1288214251e

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

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)
        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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
webtranslateit-safe-0.4.3 lib/webtranslateit/safe/backup.rb
webtranslateit-safe-0.4.2 lib/webtranslateit/safe/backup.rb
webtranslateit-safe-0.4.1 lib/webtranslateit/safe/backup.rb