Sha256: 9849415d85310fe2d832288d07771d27228f920f8df8eafbe3d3cdd5f7a30247

Contents?: true

Size: 567 Bytes

Versions: 6

Compression:

Stored size: 567 Bytes

Contents

module Backup
  module Configuration
    class Adapter
      
      attr_accessor :attributes 
      
      %w(files user password database skip_tables commands additional_options).each do |method|
        define_method method do |value|
          attributes[method] = value
        end
      end

      def initialize
        @attributes = {}
        @options    = Backup::Configuration::AdapterOptions.new
      end

      def options(&block)
        @options.instance_eval &block
      end
      
      def get_options
        @options
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backup-2.3.1 lib/backup/configuration/adapter.rb
backup-2.3.0.3 lib/backup/configuration/adapter.rb
backup-2.3.0.2 lib/backup/configuration/adapter.rb
backup-2.3.0.1 lib/backup/configuration/adapter.rb
backup-2.3.0 lib/backup/configuration/adapter.rb
backup-2.2.1 lib/backup/configuration/adapter.rb