28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/config_o_mat/configurator/op/refresh_all_profiles.rb', line 28
def call
self.profiles_to_apply = []
self.last_refresh_time = Time.now.to_i
profile_defs.each do |(profile_name, definition)|
if definition.kind_of?(ConfigOMat::Profile)
refresh_appconfig_profile(profile_name, definition)
elsif definition.kind_of?(ConfigOMat::FacterProfile)
refresh_facter_profile(profile_name)
else
error profile_name, "unknown profile type #{definition.class.name}"
end
end
end
|