diff --git a/lib/nexpose/site.rb b/lib/nexpose/site.rb index d943a600..c6c7d8a5 100644 --- a/lib/nexpose/site.rb +++ b/lib/nexpose/site.rb @@ -257,6 +257,11 @@ def hosts @site_config.hosts end + # Set the hosts array with user provided value. + def hosts=(value) + @site_config.hosts = value + end + # Add the host to the existing lists of hosts for this site. def add_host(host) @site_config.hosts << host