Class: KnownHosts

Inherits:
StationModule
  • Object
show all
Defined in:
lib/vagrant/conductor/modules/known-hosts/known-hosts.rb

Instance Method Summary collapse

Instance Method Details

#add_domain(domain) ⇒ Object



3
4
5
# File 'lib/vagrant/conductor/modules/known-hosts/known-hosts.rb', line 3

def add_domain(domain)
  shell_provision("bash #{@scripts}/add-domain.sh #{domain}")
end

#provisionObject



7
8
9
10
11
12
# File 'lib/vagrant/conductor/modules/known-hosts/known-hosts.rb', line 7

def provision
  # Add known hosts
  args.find?('domains', []).each do |domain|
    add_domain(domain)
  end
end