Class: ConfigOMat::Op::RefreshProfile

Inherits:
LifecycleVM::OpBase
  • Object
show all
Defined in:
lib/config_o_mat/configurator/op/refresh_profile.rb

Instance Method Summary collapse

Instance Method Details

#callObject



26
27
28
29
30
31
32
# File 'lib/config_o_mat/configurator/op/refresh_profile.rb', line 26

def call
  if applying_profile.loaded_profile_data.kind_of?(ConfigOMat::LoadedAppconfigProfile)
    refresh_appconfig_profile
  elsif applying_profile.loaded_profile_data.kind_of?(ConfigOMat::LoadedFacterProfile)
    refresh_facter_profile
  end
end