Sha256: 5ff75eff17af292244224caf77f6ebb54b80d078133aaac9ad85a72a045b1da6

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

module Astrails
  module Safe
    class Backup
      attr_accessor :id, :kind, :filename, :extension, :command, :compressed, :timestamp, :path, :processed, :multi
      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
          Astrails::Safe.const_get(mod).new(config, self).process
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webbynode-safe-0.2.5 lib/astrails/safe/backup.rb