Sha256: 8e3654381a2f228ece4c15fdc25310892a283b0b5448a063c8bb71b29ff533be

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require 'open3'

module Ariranha
  module Drivers
    class BaseDriver
      def initialize(config)
        @config = config
        config_driver
        @timestamp = Time.now.getutc.strftime('%Y%m%d%H%M%S')
      end

      attr_reader :database

      def backup
        puts "running #{backup_cmd}..."
        _out, _err, _status = Open3.capture3 backup_cmd
        filename
      end

      private

      attr_reader :config, :filename, :timestamp
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ariranha-0.0.1 lib/ariranha/drivers/base_driver.rb