Sha256: 84e64dc498abc14d602867be7360483a7da7d15e78633adb949fd36b7dde5cdd

Contents?: true

Size: 365 Bytes

Versions: 10

Compression:

Stored size: 365 Bytes

Contents

module DNSimple
  module Commands
    class ServiceAdd
      def execute(args, options = {})
        domain_name = args.shift
        domain = Domain.find(domain_name)
        short_name = args.shift
        service = Service.find(short_name)
        domain.add_service(short_name)
        puts "Added #{service.name} to #{domain_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/service_add.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/service_add.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/service_add.rb