Skip to content

Instantly share code, notes, and snippets.

@mockra
Created November 1, 2013 05:10
Show Gist options
  • Save mockra/7261186 to your computer and use it in GitHub Desktop.
Save mockra/7261186 to your computer and use it in GitHub Desktop.
# Install the Ruby library
gem install dnsimple-ruby
# Check if a domain is available
DNSimple::Domain.check(your_domain_name) == 'available'
# Register a domain
domain = DNSimple::Domain.register(domain_name)
# Apply a template to your domain
domain.apply('TEMPLATE_ID')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment