Class: Pec::Handler::UserData

Inherits:
Object
  • Object
show all
Extended by:
Core
Defined in:
lib/pec/handler/user_data.rb

Class Method Summary collapse

Class Method Details

.build(host) ⇒ Object



6
7
8
9
10
# File 'lib/pec/handler/user_data.rb', line 6

def build(host) 
  user_data = host.user_data || {}
  user_data['fqdn'] = host.name if host.user_data && !host.user_data['fqdn'] 
  { user_data: user_data }
end