Created
November 1, 2013 05:10
-
-
Save mockra/7261186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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