From 9e7ab033d54d8d3edad0764882c8333982f33368 Mon Sep 17 00:00:00 2001 From: Ari Rubinstein Date: Mon, 15 Oct 2012 02:38:56 -0700 Subject: [PATCH] Add host set ability for complete array set_host injects into an array, which doesn't work for replacing an entire site with hosts --- lib/nexpose/site.rb | 5 +++++ 1 file changed, 5 insertions(+) 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