solara/lib/solara_manager.rb in solara-0.6.0 vs solara/lib/solara_manager.rb in solara-0.7.0
- old
+ new
@@ -38,11 +38,11 @@
if !init && BrandsManager.instance.exists(brand_key)
Solara.logger.fatal("Brand with key (#{brand_key}) already added to brands!")
return
end
- BrandOnboarder.new(brand_key, brand_name, clone_brand_key: clone_brand_key).onboard
+ BrandOnboarder.new.onboard(brand_key, brand_name, clone_brand_key: clone_brand_key)
switch(brand_key, ignore_health_check: true)
clone_message = clone_brand_key.nil? || clone_brand_key.empty? ? '.' : ", cloned from #{clone_brand_key}."
@@ -74,8 +74,12 @@
end
def doctor(brand_key = nil, print_logs: true)
keys = brand_key.nil? || brand_key.empty? ? [] : [brand_key]
DoctorManager.new.visit_brands(keys, print_logs: print_logs)
+ end
+
+ def sync_brand_with_template(brand_key)
+ BrandOnboarder.new.sync_with_template(brand_key)
end
end
\ No newline at end of file