Sha256: 6bbddf22077964b6983259bb2ce2528e77d40da4bcf85101b4e85f44b6e2754d

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

require 'sdbport/domain/destroy'
require 'sdbport/domain/export'
require 'sdbport/domain/import'
require 'sdbport/domain/purge'

module Sdbport
  class Domain

    def initialize(args)
      @args = args
    end

    def import(input)
      domain_import.import input
    end

    def export(output)
      domain_export.export output
    end

    def export_sequential_write(output)
      domain_export.export_sequential_write output
    end

    def purge
      domain_purge.purge
    end

    def destroy
      domain_destroy.destroy
    end

    private

    def domain_destroy
      @domain_destroy ||= Domain::Destroy.new @args
    end

    def domain_export
      @domain_export ||= Domain::Export.new @args
    end

    def domain_import
      @domain_import ||= Domain::Import.new @args
    end

    def domain_purge
      @domain_purge ||= Domain::Purge.new @args
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sdbport-0.4.1 lib/sdbport/domain.rb
sdbport-0.4.0 lib/sdbport/domain.rb