Sha256: 57650a9a7eef5b7cf60f7bf857901e8793e8151849b7047ec9d6fac55bd0ec69

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 Bytes

Contents

module DNSimple
  module Commands
    class DomainTransfer
      def execute(args, options = {})
        name = args.shift
        registrant = {:id => args.shift}
        authinfo = args.shift unless args.empty?
        authinfo ||= ''

        extended_attributes = {}
        args.each do |arg|
          n, v = arg.split(":")
          extended_attributes[n] = v
        end

        transfer_order = TransferOrder.create(name, authinfo, registrant, extended_attributes)
        puts "Transfer order issued for #{name}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dnsimple-ruby-1.7.1 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/domain_transfer.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/domain_transfer.rb