Sha256: d852360d7e9fe2941d9fb6e23b0edfb529ca74c1470b430564e75274cc83a92d

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

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 purge
      domain_purge.purge
    end

    private

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

    def domain_export
      @domain_export ||= Domain::Export.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.1.1 lib/sdbport/domain.rb
sdbport-0.1.0 lib/sdbport/domain.rb