terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Allow adding custom Domains to environments. #80

Open jonpugh opened 8 years ago

jonpugh commented 8 years ago
jonpugh commented 8 years ago

I've updated the issue with the new plan:

New commands:

terra environment:domains - List all domains attached to an environment. terra environment:domains add - Add a domain to an environment. terra environment:domains remove - Remove a domain from an environment.

jonpugh commented 8 years ago

Ok, this seems to work!!

I'd like to add more features in the future like DNS checks, but I think it's working well enough to close the issue.

@jlyon: Check it out and let me know what you think!!

jlyon commented 8 years ago

Awesome! I'll take a look today

jlyon commented 8 years ago

This works great for me after I added domains: {} to each environment in ~/.terra/terra. This is really awesome. Nice work!

Note for others, "add" comes after app and environment in the command:

terra  environment:domains [<app_name>] [<environment_name>] [<action>] [<domain>]

so:

terra  environment:domains drupal dev add dev-drupal.example.com